Re: OS.SYSTEM ERROR !!!
- From: giltay@xxxxxxxxx
- Date: Tue, 30 Sep 2008 10:40:10 -0700 (PDT)
On Sep 30, 1:21 pm, "Blubaugh, David A." <dbluba...@xxxxxxxxxx> wrote:
I would usually execute this program (with the appropriate arguments) by[snip]
going to following directory within MS-DOS (Windows XP):
C:\myprogramfolder\run> Myprogram.exe 1 1 acc 0
import os[snip]
os.system(r"C:\myprogramfolder\run\Myprogram.exe 1 1 acc 0")
ERROR opening inputs/io/control.dat[snip]
I would add the following line right before your call to os.system:
os.chdir(r'C:\myprogramfolder\run')
If you have to change directories to run it properly in the Windows
shell, then you need to do it in Python, too.
HTH,
Geoff G-T
.
- Follow-Ups:
- Re: OS.SYSTEM ERROR !!!
- From: Christian Heimes
- Re: OS.SYSTEM ERROR !!!
- References:
- OS.SYSTEM ERROR !!!
- From: Blubaugh, David A.
- OS.SYSTEM ERROR !!!
- Prev by Date: Re: OS.SYSTEM ERROR !!!
- Next by Date: Re: OS.SYSTEM ERROR !!!
- Previous by thread: Re: OS.SYSTEM ERROR !!!
- Next by thread: Re: OS.SYSTEM ERROR !!!
- Index(es):
Relevant Pages
|