[Pythonmac-SIG] Setting paths
Aldo Bergamini
aab.lists at nb-a.com
Wed Jul 21 11:10:24 CEST 2004
I am faced with a very basic question: how to set paths to be able to
create a package with my .py source files.
The setup is simple: I do use BBEdit to write the code and to launch the
test scripts. Of course I am using the nice shell/worksheet feature of
BBEdit to start the test scripts.
There is a bunch of folders at some location like:
/Users/aldo/Documents/ .... /Pegasus/Objectspace
In the Pegasus folder there is an __init__.py file, as well as in the
subfolders that should host different parts of the would-be-package.
I tried to set an environment variable hoping to pass some information
the the interpreter:
>set PYTHONPATH = "/Users/aldo/Documents/Work/Amministrazione/Budgeting/
>Budget_proj/Pegasus/"
Strangely I cant't read it back..
>$PYTHONPATH
>tcsh: /Users/aldo/Documents/Work/Amministrazione/Budgeting/Budget_proj/
>Pegasus/: Permission denied.
And the interpreter, when I launch a test script that opens a .py file in
the same subfolder as the test code, stops as it get to the import lines:
>import sys
>import exceptions
>import Pegasus
It obviously has no clue where to look for my 'package'; how should I set
the correct path (pointing to a folder that is in a "Finder-handy" place)?
TIA
Aldo
More information about the Pythonmac-SIG
mailing list