On 2013.05.16 02:48, Charles Smith wrote:
> Hi.
> 
> How can I say, from the cmd line, that python should take my CWD as my
> CWD, and not the directory where the script actually is?
> 
> 
> I have a python script that works fine when it sits in directory WC,
> but if I move it out of WC to H and put a symlink from H/script to WC,
> it doesn't find the packages that are in WC.  Also, if I use the
> absolute path to H, it won't find them, but I guess I can understand
> that.
Symlinks can find their targets, but targets have absolutely no way of knowing 
where symlinks to them are. It's one-way. It would work if
the actual file were in WC and you created a symlink inside H.

-- 
CPython 3.3.1 | Windows NT 6.2.9200 / FreeBSD 9.1
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to