Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #45412
| Date | 2013-05-16 03:12 -0500 |
|---|---|
| From | Andrew Berg <bahamutzero8825@gmail.com> |
| Subject | Re: executing python scripts that are symlinked |
| References | <95bc1155-0a83-4ab1-8b76-68a819b2e29a@en2g2000vbb.googlegroups.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1740.1368691981.3114.python-list@python.org> (permalink) |
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
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
executing python scripts that are symlinked Charles Smith <cts.private.yahoo@gmail.com> - 2013-05-16 00:48 -0700
Re: executing python scripts that are symlinked Andrew Berg <bahamutzero8825@gmail.com> - 2013-05-16 03:12 -0500
Re: executing python scripts that are symlinked Dave Angel <davea@davea.name> - 2013-05-16 04:18 -0400
Re: executing python scripts that are symlinked Charles Smith <cts.private.yahoo@gmail.com> - 2013-05-16 01:29 -0700
Re: executing python scripts that are symlinked Dave Angel <davea@davea.name> - 2013-05-16 10:45 -0400
Re: executing python scripts that are symlinked Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-05-16 09:04 +0000
Re: executing python scripts that are symlinked Charles Smith <cts.private.yahoo@gmail.com> - 2013-05-16 02:23 -0700
csiph-web