##// END OF EJS Templates
Fix small bug in UNC path context manager.
Fernando Perez -
Show More
@@ -54,7 +54,11 b' class AvoidUNCPath(object):'
54 if self.is_unc_path:
54 if self.is_unc_path:
55 # change to c drive (as cmd.exe cannot handle UNC addresses)
55 # change to c drive (as cmd.exe cannot handle UNC addresses)
56 os.chdir("C:")
56 os.chdir("C:")
57 return self.path
57 return self.path
58 else:
59 # We return None to signal that there was no change in the working
60 # directory
61 return None
58
62
59 def __exit__(self, exc_type, exc_value, traceback):
63 def __exit__(self, exc_type, exc_value, traceback):
60 if self.is_unc_path:
64 if self.is_unc_path:
General Comments 0
You need to be logged in to leave comments. Login now