From 6238fc3f91f88b4e95a51744f2442a8b159ea1eb 2013-10-31 19:37:34 From: Thomas Kluyver Date: 2013-10-31 19:37:34 Subject: [PATCH] Bundled path.py should not modify the os module --- diff --git a/IPython/external/path/_path.py b/IPython/external/path/_path.py index aa666ef..3591850 100644 --- a/IPython/external/path/_path.py +++ b/IPython/external/path/_path.py @@ -84,9 +84,9 @@ except NameError: unicode = str try: - os.getcwdu + getcwdu = os.getcwdu except AttributeError: - os.getcwdu = os.getcwd + getcwdu = os.getcwd if sys.version < '3': def u(x): @@ -214,7 +214,7 @@ class path(unicode): @classmethod def getcwd(cls): """ Return the current working directory as a path object. """ - return cls(os.getcwdu()) + return cls(getcwdu()) # # --- Operations on path strings.