module access
Mark McEahern
marklists at mceahern.com
Thu May 2 14:41:31 EDT 2002
> print '<A HREF="dirb/fileb.py'
>
> if the file this is in is called from outside the module i need the 'dirb'
> prefix. if called from within the module, having the prefix causes the
link
> to fail.
I'm tempted to suggest that you try to take a step back and approach your
problem from a different angle. Why on earth should the package layout be
hard-coded into the hyperlink? It seems like a classic example of mashing
presentation and logic together too tightly.
I'm sorry I can't think of anything more helpful to say.
Cheers,
// mark
More information about the Python-list
mailing list