Joel Ricker wrote:
>
> I'm having a problem making my modules come up. I'm trying to add a custom
> module to my work and I'm not sure if I'm doing it right. I see something
> mentioned in the documentation about $PATH or $PYTHONPATH and I'm not sure
> how to change this. Basically I need to:
>
> 1) Set up Activestates IDE to know where the directory is so that when the
> interactive window comes up and I type import module_name, it loads it
> properly.
Go to "Tools" and then "Edit Python Path" Click on "PythonPath". Double
click on the word (Default). Add a semicolon and the *directory* that
your module lives in. Don't put in your module's name...just its
directory.
> 2) Set up my scripts to properly load in the same directory. To do this, I
> need to figure out how to load in the current execution directory. My
> scripts are going to be run on this system and another system that may not
> share the same directory struture.
Don't understand what you mean by "load your scripts". The "import"
statement will look for your module in each directory in your
PythonPath.
Paul Prescod
_______________________________________________
ActivePython mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activepython