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

Split IPython specific functions out of utils.path #8214

Merged
merged 5 commits into from Apr 2, 2015

Conversation

takluyver
Copy link
Member

Functions like get_ipython_dir() are moved to a new IPython.paths module. This should facilitate moving the remainder of utils.path into genutils. Wrappers are left in utils.path which will still work, but issue a deprecation warning on call.

While doing this, I noticed that the code to check for pre-0.11 config files and warn about them is still in place. I think that has served its purpose and can be retired now.

@Carreau
Copy link
Member

Carreau commented Apr 1, 2015

+1

@@ -0,0 +1,246 @@
from contextlib import contextmanager
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume this isn't meant to be in magics

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, it wasn't. Fixed.

# will raise ProfileDirError if no such profile
raise IOError("Profile %r not found")
return filefind(filename, ['.', pd.security_dir])
warn("get_security_file has moved to the IPython.paths module")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

get_security_file is going to leave IPython entirely, since it's a Jupyter function.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found we were only using this in one example, and find_connection_file, which is already in jupyter_client, works as well for that, so I have removed this function entirely.

minrk added a commit that referenced this pull request Apr 2, 2015
Split IPython specific functions out of utils.path
@minrk minrk merged commit a6fd3b1 into ipython:master Apr 2, 2015
@minrk minrk added this to the 4.0 milestone Jul 2, 2015
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

3 participants