![]() Registered Member ![]()
|
Greetings.
I'm developing a python plasmoid and I have the minimal directory structure:
I want to run from main.py a new python interpreter using subprocess.Popen(). It worked flawlessly for an interpreter running a builtin python module (SimpleHTTPServer) but now I want to do the same with my custom script "contents/code/startServer.py", but I don't know what relative path to the file should I use from inside main.py. In my tests I was using "contents/code/startServer.py" which worked when tested using "plasmoidviewer ." from inside the plasmoid directory. But, after creating the .plasmoid and installing it, that no longer works. Any ideas? |
![]() Registered Member ![]()
|
applet.package().path() + "contents/code/startServer.py"
But it'd be cleaner to just import the module (simply "import startServer") and then start a different process from the code. |
Registered users: Bing [Bot], Evergrowing, Google [Bot], rockscient