ipython/ipython — pull request #3460 by tomspur (2013-06-24 09:44:06+00:00)
Title: Set calling program to UNKNOWN, when argv not in sys

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 UNKNOWN or other logic in IPython will crash - for
instance when checking for command line arguments.