2012-11-05 20:18:20 +00:00
|
|
|
Index: pylib/gyp/input.py
|
|
|
|
===================================================================
|
|
|
|
--- pylib/gyp/input.py (revision 1527)
|
|
|
|
+++ pylib/gyp/input.py (working copy)
|
|
|
|
@@ -851,7 +851,8 @@
|
2012-05-31 15:19:33 +00:00
|
|
|
# that don't load quickly, this can be faster than
|
|
|
|
# <!(python modulename param eters). Do this in |build_file_dir|.
|
|
|
|
oldwd = os.getcwd() # Python doesn't like os.open('.'): no fchdir.
|
|
|
|
- os.chdir(build_file_dir)
|
|
|
|
+ if not build_file_dir is None:
|
|
|
|
+ os.chdir(build_file_dir)
|
2012-04-03 01:34:16 +00:00
|
|
|
|
2012-05-31 15:19:33 +00:00
|
|
|
parsed_contents = shlex.split(contents)
|
|
|
|
py_module = __import__(parsed_contents[0])
|