[yt-dev] Module search path in iyt

Andrew Myers atmyers at berkeley.edu
Fri Jan 11 16:27:05 PST 2013


I recently updated my yt installation, and I noticed that the current
working directory no longer gets added to the module search path when
running yt in interactive shell mode. So, if "StarParticles.py" is a file
in my current working directory, I can't just type

import StarParticles

to import that code as a module. I fixed this in my installation by adding:

import sys
sys.path.insert(0, ' ')

to the top of the bin/iyt script, but not sure what the right way to do
this more generally is, so I just thought I'd bring this to people's
attention.

-Andrew Myers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-dev-spacepope.org/attachments/20130111/0689e53d/attachment.htm>


More information about the yt-dev mailing list