Commits

Nathan Goldbaum committed f2764b9

Prepending sys.path with current working directory when running via 'yt load'.
The ipython embed api doesn't do this automatically for some reason.

Comments (0)

Files changed (1)

yt/utilities/command_line.py

                   )
         else:
             from IPython.config.loader import Config
+            import sys
             cfg = Config()
+            # prepend sys.path with current working directory
+            sys.path.insert(0,'')
             IPython.embed(config=cfg,user_ns=local_ns)
+            
 
 class YTMapserverCmd(YTCommand):
     args = ("proj", "field", "weight",