Blubaugh, David A. wrote:
<snip>
<snip>
Based on your description, it seems pretty obvious (and easy to confirm)
that Myprogram.exe needs to be run from its containing directory
("C:\myprogramf older\run"). Try something like this...
import os
pwd = os.getcwd()
os.chdir('c:/myprogramfolder/run')
os.system("Mypr ogram.exe 1 1 acc 0")
os.chdir(pwd)
HTH,
Marty
To All,
>
I have been attempting to execute the following program within the
Python environment:
>
I have been attempting to execute the following program within the
Python environment:
>
However, when I would try to execute the following lines of source code
within a python script file:
>
import os
>
os.system(r"C:\ myprogramfolder \run\Myprogram. exe 1 1 acc 0")
>
However, when I would try to execute the following lines of source code
within a python script file:
>
import os
>
os.system(r"C:\ myprogramfolder \run\Myprogram. exe 1 1 acc 0")
>
>
I believe I may be missing something here that prevents the executable
file working within python from utilizing this (.dat). The printed
final error is the following:
>
ERROR opening inputs/io/control.dat
>
Does anyone know what that could be ??
I believe I may be missing something here that prevents the executable
file working within python from utilizing this (.dat). The printed
final error is the following:
>
ERROR opening inputs/io/control.dat
>
Does anyone know what that could be ??
that Myprogram.exe needs to be run from its containing directory
("C:\myprogramf older\run"). Try something like this...
import os
pwd = os.getcwd()
os.chdir('c:/myprogramfolder/run')
os.system("Mypr ogram.exe 1 1 acc 0")
os.chdir(pwd)
HTH,
Marty