Skip to content

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

Merged
takluyver merged 2 commits intoipython:masterfrom
ivanov:no_sys_available
Jul 14, 2013
Merged

Set calling program to UNKNOWN, when argv not in sys (take #2)#3632
takluyver merged 2 commits intoipython:masterfrom
ivanov:no_sys_available

Conversation

@ivanov
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

3 participants