[issue15533] subprocess.Popen(cwd) documentation
Chris Jerdonek
report at bugs.python.org
Mon Aug 27 22:37:09 CEST 2012
Chris Jerdonek added the comment:
python_dir = os.path.dirname(os.path.realpath(sys.executable))
wrong_cwd = os.path.join(python_dir, 'Doc')
Actually, is there a better directory to be using for this? I'd like a directory that is guaranteed to exist that is in the same directory as sys.executable -- so that I can construct a simple relative path from that directory to sys.executable.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15533>
_______________________________________
More information about the Python-bugs-list
mailing list