Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3 & getcwdu #4469

Merged
merged 2 commits into from Nov 1, 2013
Merged

Python 3 & getcwdu #4469

merged 2 commits into from Nov 1, 2013

Conversation

takluyver
Copy link
Member

We were using the os.getcwdu() function in several places. That doesn't exist on Python 3, but the path.py module was masking that by setting os.getcwdu = os.getcwd. As described in #4462, however, that didn't always work.

This adds a reference in py3compat which points to getcwd on Python 3 and getcwdu in Python 2.

@minrk
Copy link
Member

minrk commented Oct 31, 2013

👍. Looks like you got them all.

@stonebig
Copy link
Contributor

stonebig commented Nov 1, 2013

After a carefull re-install + cherry-picking of the 2 commits, it works.
👍 for me.

minrk added a commit that referenced this pull request Nov 1, 2013
Python 3 & getcwdu

We were using the os.getcwdu() function in several places. That doesn't exist on Python 3, but the path.py module was masking that by setting os.getcwdu = os.getcwd. As described in #4462, however, that didn't always work.

This adds a reference in py3compat which points to getcwd on Python 3 and getcwdu in Python 2.
@minrk minrk merged commit 5bf4949 into ipython:master Nov 1, 2013
@kotfic
Copy link

kotfic commented Jan 22, 2014

This does not appear to be back ported into 1.x and is causing crashes after cherry picking 131a4ab (see #4609) and trying to run ipcluster

@minrk
Copy link
Member

minrk commented Jan 22, 2014

From IRC: This doesn't need to be backported, backporting #4609 appears to have been sufficient.

mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
Python 3 & getcwdu

We were using the os.getcwdu() function in several places. That doesn't exist on Python 3, but the path.py module was masking that by setting os.getcwdu = os.getcwd. As described in ipython#4462, however, that didn't always work.

This adds a reference in py3compat which points to getcwd on Python 3 and getcwdu in Python 2.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants