Closed GoogleCodeExporter closed 9 years ago
Is there an easy way to work around this issue and set the CWD inside the
script without using the full path? I'm thinking something like:
import os
os.chdir(__filedir__)
Original comment by pckuj...@gmail.com
on 3 Apr 2012 at 5:17
Hmmm, I take it back; pyscripter *is* setting the CWD to the file. But then
when the script finishes execution, it sets the CWD back to PyScripter's
directory. I guess I assumed that the CWD would stay at whatever it was set to
by the script. That way I could prototype in the interpreter and output files
to the same dir as the script.
I still think this would be a good idea. Any input as to why I'm wrong about
that assumption? :-)
Original comment by pckuj...@gmail.com
on 3 Apr 2012 at 5:28
After running a script the interpreter is brought back to the state before
running a script. If you want you can change the current directory of the
interpreter back to whatever you want.
Original comment by pyscripter
on 3 Apr 2012 at 6:30
Original issue reported on code.google.com by
pckuj...@gmail.com
on 3 Apr 2012 at 5:11