Can Python Plugins access the file system?
Posted: Monday 22 January 2018 11:25
Can python plugins call things like..
os.system()
call()
etc?
I can't seem to get this to work on my 433 RF Switches plugin.
https://github.com/flatsiedatsie/433Switches
If it is disabled on purpose somehow (security reasons?), then how can I do this:
- When users click a button in the interface I would like a RF sniffer script to be able to run for ten seconds in the background to listen to the 'on' signal from a remote control. Later on, I would like people to press a switch and then be able to transmit a code for a second.
Since the plugin development wiki page mentions that you should not use sleep and such in a plugin, I opted to call an external script in a new thread that would do this. But it now seems this is not possible? Is there any wat to make this work?
os.system()
call()
etc?
I can't seem to get this to work on my 433 RF Switches plugin.
https://github.com/flatsiedatsie/433Switches
If it is disabled on purpose somehow (security reasons?), then how can I do this:
- When users click a button in the interface I would like a RF sniffer script to be able to run for ten seconds in the background to listen to the 'on' signal from a remote control. Later on, I would like people to press a switch and then be able to transmit a code for a second.
Since the plugin development wiki page mentions that you should not use sleep and such in a plugin, I opted to call an external script in a new thread that would do this. But it now seems this is not possible? Is there any wat to make this work?