L
Lowell Kirsh
I'm trying to write a script in python to run several other python
scripts using os.system(scriptName). Many of those other scripts have
lines in them which look something like:
doSomething('config.txt')
where config.txt is a file in the same directory as scriptName. When I
run scriptName from its own directory, it is able to find config.txt.
But when I run scriptName from another directory, it can't find the file
because it's looking in the directory of the script which called it
rather than its own directory. Is there any way around this?
Lowell
scripts using os.system(scriptName). Many of those other scripts have
lines in them which look something like:
doSomething('config.txt')
where config.txt is a file in the same directory as scriptName. When I
run scriptName from its own directory, it is able to find config.txt.
But when I run scriptName from another directory, it can't find the file
because it's looking in the directory of the script which called it
rather than its own directory. Is there any way around this?
Lowell