Show More
@@ -54,7 +54,11 b' class AvoidUNCPath(object):' | |||
|
54 | 54 | if self.is_unc_path: |
|
55 | 55 | # change to c drive (as cmd.exe cannot handle UNC addresses) |
|
56 | 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 | 63 | def __exit__(self, exc_type, exc_value, traceback): |
|
60 | 64 | if self.is_unc_path: |
General Comments 0
You need to be logged in to leave comments.
Login now