"module pointer files" for import (now and py2.5) ?

R

robert

I want to occasionally do a "redirected" import of a python module which
is located offside of the legacy sys.path (Windows) - for example a tool
is maintained within "cgi-bin" web stuff (while I do not want to add
that whole folder's stuff to the sys.path)

..pth adds only directories to the python path.

is there a convenient/short method to create a python "module pointer"
(file) to such module - maybe just create such pointer file somewhere on
the python path (in my "sitetools") ?

If no clean method, what is the best ad-hoc trick?

( In addition to what mere UNIX links would do, it should be consistent
pythonic: such module can import neighbor modules (relatively), create
the .pyc's next to the code... )

Is such stuff more easy and consistent with py2.5's relative imports?
Are such module pointers maybe supported somehow in py2.5?

robert
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,167
Latest member
SusanaSwan
Top