2011-09-30 11:22:54 +02:00
|
|
|
Index: pylib/gyp/input.py
|
|
|
|
===================================================================
|
2012-06-21 22:35:13 +02:00
|
|
|
--- pylib/gyp/input.py (revision 1402)
|
2011-09-30 11:22:54 +02:00
|
|
|
+++ pylib/gyp/input.py (working copy)
|
2012-06-21 22:35:13 +02:00
|
|
|
@@ -684,7 +684,8 @@
|
|
|
|
# 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)
|
2011-09-30 11:22:54 +02:00
|
|
|
|
2012-06-21 22:35:13 +02:00
|
|
|
parsed_contents = shlex.split(contents)
|
|
|
|
py_module = __import__(parsed_contents[0])
|