NT4 shortcuts and import
Phil Harris
phil.harris at zzope.co.uk
Sat Jul 15 13:30:43 EDT 2000
You can't do that in NT.
Shortcuts are not the same as links in *nix.
Shortcuts are really, next to useless.
Even most microsoft products don't know what to do with them, try using a
shortcut to a folder in any standard ms product and it will fail in the same
way.
Phil
Andy Freeman <anamax at earthlink.net> wrote in message
news:8koe6q$avh$1 at nnrp1.deja.com...
> I'd like to use a shortcut named, say, "src", from the current
> directory to a directory somewhere else and then use "import src.foo".
> The problem is that NT4 thinks that the shortcut is named "src"
> but Python thinks that the shortcut is named "src.lnk". Note that
> I can't use "import src.lnk.foo" because the first "." is interpreted
> as a directory name separator, not a part of the "src.lnk" module
> name.
>
> (1) How do I get Python to use "src" as the module name?
> (2) How do I escape "." in variable names?
>
> I'm using Python 1.5.
>
> thanks,
> -andy
>
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
More information about the Python-list
mailing list