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

migrate config at start of applications #25

Merged
merged 6 commits into from
Jun 25, 2015

Conversation

minrk
Copy link
Member

@minrk minrk commented Jun 23, 2015

  • use logging for migrate output instead of print
  • use .jupyter/migrated to indicate that migration has happened,
    and shouldn't be rechecked
  • default log-level is INFO, since we seem to always want that

@minrk minrk force-pushed the migrate-at-start branch from 5fb724f to 2bc82ab Compare June 23, 2015 18:54
@minrk minrk force-pushed the migrate-at-start branch from 2bc82ab to 6c81ad4 Compare June 23, 2015 19:16
# already migrated
return

ipdir = os.environ.get('IPYTHONDIR') or os.path.expanduser('~/.ipython')
Copy link
Member

Choose a reason for hiding this comment

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

We're importing/defining get_ipython_dir in the migrate module, should this import and use that rather than copying only the fallback logic?

Copy link
Member Author

Choose a reason for hiding this comment

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

makes sense. Done.

@takluyver
Copy link
Member

Thanks, this looks good to me now.

takluyver added a commit that referenced this pull request Jun 25, 2015
migrate config at start of applications
@takluyver takluyver merged commit ff52c26 into jupyter:master Jun 25, 2015
@minrk minrk added this to the 4.0 milestone Oct 26, 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.

2 participants