module access
bob ackerman
rdacker at pacbell.net
Thu May 2 14:25:55 EDT 2002
On Thursday, May 2, 2002, at 11:06 AM, Mark McEahern wrote:
> [rdack]
> [...]
>> but i have a link in fileb [...]
>
> What do you mean by 'link'?
>
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.
> If you import the package, you can access the __path__ property. That
> might
> help.
>
> // m
>
More information about the Python-list
mailing list