Skip navigation

I have been using bash for many years but I haven’t really done too much with it except some simple setup scripts. I learned some things today and I just wanted to write this down to help me remember:

Separate multiple paths in a bash environment variable using a colon, not a semicolon:


PYTHONPATH can be viewed in os.environ[ “PYTHONPATH”] ( not os.environ[ “PATH” ] ) and any of those paths should be visible in sys.path. If the paths added to PYTHONPATH in your .bash_profile on Mac OS X do not show up in sys.path then something is wrong.

Use the “source” command to reload your .bash_profile settings in your existing terminal:

source ~/.bash_profile

I also found this “Bash by Example” article helpful.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: