Re: import from environment path

2011-06-18 Thread Chris Torek
In article <3a2b0261-ee10-40c0-8fad-342f186ee...@q30g2000yqb.googlegroups.com> Guillaume Martel-Genest wrote: >Here's my situation : I got a script a.py that need to call b.py. The >2 scripts can't be in a same package. Script a.py knows the path of >b.py relative to an environment variable B_PAT

import from environment path

2011-06-17 Thread Guillaume Martel-Genest
Hi, Here's my situation : I got a script a.py that need to call b.py. The 2 scripts can't be in a same package. Script a.py knows the path of b.py relative to an environment variable B_PATH, let's say B_PATH/foo/ b.py. The solution I found is to do the flowwing : b_dir = os.path.join(os.environ['