OT: Python Import question
Jeremy Wilkins
jeb at jdwilkins.co.uk
Mon Sep 3 16:46:44 BST 2007
Hi,
I've been trying to tell one python script to import another, the
problem is the other script is in a different non-child folder.
Neither are in the default import path. I can't set PYTHONPATH before
hand and when i set it inside a script it seems to have no effect, eg
import os
os.environ['PYTHONPATH'] = '/folder/containing/secondscript'
import script2
I'm stumped so any help much appreciated
thanks
jebw
More information about the bazaar
mailing list