Created
October 9, 2014 08:54
-
-
Save wallymathieu/1888ad341b3985f4ded5 to your computer and use it in GitHub Desktop.
exec.py in sublime text 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set temporary PATH to locate executable in arg_list | |
if path: | |
old_path = os.environ["PATH"] | |
# The user decides in the build system whether he wants to append $PATH | |
# or tuck it at the front: "$PATH;C:\\new\\path", "C:\\new\\path;$PATH" | |
os.environ["PATH"] = ";".join( map(lambda p:p.encode(sys.getfilesystemencoding()), os.path.expandvars(path))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Might be totally wrong though