Skip to main content

Thread: Popen compatibility Linux and Windows


i use subprocess.popen load program prog1 linux


subprocess import popen

...

popen('',executable='./prog1')


trying under windows, find not work

neither popen('',executable='c:\\progdir\\prog1')

or popen('',executable='c:\\python27\\python.exe c:\\progdir\\prog1.py')

rationale using popen handle platform dependancies me. suggestions or pointers useful information in area

rgds bill

the following works

popen('c:\python27\python.exe prog1');

python scripts must have .py extention load explorer panel. dont expect change.

popen not automatically load python run python script. feel automated.. hell expects perfection on windows


Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk Popen compatibility Linux and Windows


Ubuntu

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support