Lines Matching defs:path
20 import os.path
27 # update sys.path; instead we just hope the user managed to do that
30 # Update module path. We want to find the relative path from libdir
31 # to pythondir, and then we want to apply that relative path to the
36 pythondir = os.path.normpath (pythondir)
37 libdir = os.path.normpath (libdir)
39 prefix = os.path.commonprefix ([libdir, pythondir])
43 prefix = os.path.dirname (prefix) + '/'
53 dir_ = os.path.join (os.path.dirname (objfile), dotdots, pythondir)
55 if not dir_ in sys.path:
56 sys.path.insert(0, dir_)