Python scripting

Asked by Siarogka

 I would like to try write Python scripts, but I don't have enough information about :
where I should put my scrupts?
where in config file I should turn on support of Python( same in Script.xml Engine=lua)
May be you can create manual of creating a simple python script, script get from user command +script and send in the chat the string "It works!".

Thank you!

Question information

Language:
English Edit question
Status:
Answered
For:
ADCH++ Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Toast (swetoast-deactivatedaccount) said :
#1

if i recall everything correctly most information about stuff that you can call in the api is in the file python.i in the source there are some few examples at the adcportal wiki and the adcportal forum rest is pretty much up too you

Revision history for this message
Toast (swetoast-deactivatedaccount) said :
#2
Revision history for this message
Jacek Sieka (arnetheduck) said :
#3

Actually, there's no support to run python scripts inside adchpp but you can run adchpp from python...there's a more or less working example in the pyutil folder. There's also an example of how to write a simple adc client (not hub) in the test folder (it's actually a stress tester)...

Can you help with this problem?

Provide an answer of your own, or ask Siarogka for more information if necessary.

To post a message you must log in.