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

Set calling program to UNKNOWN, when argv not in sys (take #2) #3632

Merged
merged 2 commits into from Jul 14, 2013

Conversation

ivanov
Copy link
Member

@ivanov ivanov commented Jul 14, 2013

if merged, this PR supersedes #3460.

There, we were only waiting on an updated comment, so I just went ahead and updated the comment (keeping the original commit from @tomspur), so we can can move forward with the merge.

tomspur and others added 2 commits July 1, 2013 10:40
It might happen, then the sys module has no argv, when embeding IPython
into other programs with IPython.embed(). In that case, just set the
calling program to "" or other logic in IPython will crash - for
instance when checking for command line arguments.
@takluyver
Copy link
Member

👍 , merging.

takluyver added a commit that referenced this pull request Jul 14, 2013
Set calling program to UNKNOWN, when argv not in sys (take #2)
@takluyver takluyver merged commit d1828aa into ipython:master Jul 14, 2013
@tomspur
Copy link
Contributor

tomspur commented Jul 17, 2013

Thanks for adding the link to Embedding Python

mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
Set calling program to UNKNOWN, when argv not in sys (take ipython#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

3 participants