[IPython-user] checking for qthread
Frédéric Mantegazza
mantegazza at ill.fr
Tue Nov 15 09:03:13 CST 2005
Le Mardi 15 Novembre 2005 15:54, Glen W. Mabey a écrit :
> Is there some way to check whether ipython was passed the -qthread
> switch when it was started?
You can use sys.argv :
$ > ipython -qthread
Python 2.3.5 (#2, Aug 30 2005, 15:50:26)
Type "copyright", "credits" or "license" for more information.
IPython 0.6.15 -- An enhanced Interactive Python.
? -> Introduction to IPython's features.
%magic -> Information about IPython's 'magic' % functions.
help -> Python's own help system.
object? -> Details about 'object'. ?object also works, ?? prints more.
In [1]: import sys
In [2]: sys.argv
Out[2]: ['/usr/bin/ipython', '-qthread']
Hope this helps...
--
Frédéric
More information about the IPython-user
mailing list