[Tutor] adding to PYTHONPATH
Steve Willoughby
steve at alchemy.com
Tue Apr 19 16:31:10 CEST 2011
On 19-Apr-11 06:49, mesrod at juno.com wrote:
> How can I add a directory to PYTHONPATH? Using Ubuntu 10.04.
That's an environment variable, so it depends on your shell. If
PYTHONPATH already exists, you can add your directory to it (with colons
between the names of directories). But you probably want this to be a
permanent change, so you need to edit the start-up file for your shell
(.cshrc, .bashrc, .profile, whatever) and add an instruction to set that
variable everytime you open a shell.
--
Steve Willoughby / steve at alchemy.com
"A ship in harbor is safe, but that is not what ships are built for."
PGP Fingerprint 4615 3CCE 0F29 AE6C 8FF4 CA01 73FE 997A 765D 696C
More information about the Tutor
mailing list