We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a2f13d0 commit ba0e3b5Copy full SHA for ba0e3b5
gyp/pylib/gyp/common.py
@@ -342,7 +342,7 @@ def __init__(self):
342
# consequently ending up with current dir "/cygdrive/c/..." being prefixed to those, which was
343
# obviously a non-existent path, for example: "/cygdrive/c/<some folder>/C:\<my win style abs path>".
344
# See https://docs.python.org/2/library/tempfile.html#tempfile.mkstemp for more details
345
- base_temp_dir = "" if IsCygwin() else os.path.split(filename)[0]
+ base_temp_dir = "" if IsCygwin() else os.path.dirname(filename)
346
# Pick temporary file.
347
tmp_fd, self.tmp_path = tempfile.mkstemp(
348
suffix='.tmp',
0 commit comments