mercurial/win32.py
changeset 30667 5861bdbeb9a3
parent 30637 344e68882cd3
child 32664 2d56e6d23be7
--- a/mercurial/win32.py	Wed Dec 21 23:40:38 2016 +0530
+++ b/mercurial/win32.py	Thu Dec 22 01:54:17 2016 +0530
@@ -14,7 +14,10 @@
 import random
 import subprocess
 
-from . import encoding
+from . import (
+    encoding,
+    pycompat,
+)
 
 _kernel32 = ctypes.windll.kernel32
 _advapi32 = ctypes.windll.advapi32
@@ -440,7 +443,7 @@
 
     res = _kernel32.CreateProcessA(
         None, args, None, None, False, _CREATE_NO_WINDOW,
-        env, os.getcwd(), ctypes.byref(si), ctypes.byref(pi))
+        env, pycompat.getcwd(), ctypes.byref(si), ctypes.byref(pi))
     if not res:
         raise ctypes.WinError()