[IPython-dev] System commands fail (path not assigned)

Ville Vainio vivainio at gmail.com
Fri Dec 30 03:01:22 EST 2005


There's a bug in current svn.

Did svn up, setup.py install, started ipython -p pysh, entered system
command ls, got

[opt\environmentswitch]|1> ls
---------------------------------------------------------------------------
exceptions.UnboundLocalError                         Traceback (most recent call
 last)

c:\python24\Lib\site-packages\IPython\iplib.py in <lambda>(cmd)
    518         self.system = lambda cmd: shell(self.var_expand(cmd),
    519                                         header='IPython system call: ',
--> 520                                         verbose=self.rc.system_verbose)
    521         # These are for getoutput and getoutputerror:
    522         self.getoutput = lambda cmd: \

c:\python24\Lib\site-packages\IPython\genutils.py in shell(cmd, verbose, debug,
header)
    353                 os.chdir(path)
    354         else:
--> 355             shell_ori('"pushd %s&&"'%path+cmd,verbose,debug,header)
    356
    357     shell.__doc__ = shell_ori.__doc__

UnboundLocalError: local variable 'path' referenced before assignment

--
Ville Vainio    http://tinyurl.com/2prnb
  Can't you see the world is burning
  Can't you feel its Fire burning
  Don't you know we all are burning
  The Fire of Life       -- R.N.Taylor / Changes




More information about the IPython-dev mailing list