[issue6386] importing yields unexpected results when initial script is a symbolic link

2014-02-06 Thread Brett Cannon
Brett Cannon added the comment: Thanks for the path, Senko! Tweaked the wording a bit as the current directory part was accurate for when you're in the REPL. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org

[issue6386] importing yields unexpected results when initial script is a symbolic link

2014-02-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 47c31e7d3779 by Brett Cannon in branch 'default': Issue #6386: When executing a script that's a symlink, the directory http://hg.python.org/cpython/rev/47c31e7d3779 -- nosy: +python-dev ___ Python

[issue6386] importing yields unexpected results when initial script is a symbolic link

2014-02-03 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- assignee: - brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6386 ___ ___ Python-bugs-list

[issue6386] importing yields unexpected results when initial script is a symbolic link

2014-02-03 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6386 ___

[issue6386] importing yields unexpected results when initial script is a symbolic link

2013-07-07 Thread Senko Rasic
Senko Rasic added the comment: Yep, signed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6386 ___ ___ Python-bugs-list mailing list

[issue6386] importing yields unexpected results when initial script is a symbolic link

2013-07-06 Thread Senko Rasic
Senko Rasic added the comment: Patch for modifying the modules part of tutorial with the changes suggested by jamadagni (reworded slightly so the note is outside the itemized list). -- keywords: +patch nosy: +senko Added file:

[issue6386] importing yields unexpected results when initial script is a symbolic link

2013-07-06 Thread Brett Cannon
Brett Cannon added the comment: Senko, could you sign the contributor agreement (http://python.org/psf/contrib/contrib-form/) so we can use your patch? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6386

[issue6386] importing yields unexpected results when initial script is a symbolic link

2013-05-27 Thread Shriramana Sharma
Shriramana Sharma added the comment: I'm sorry but I don't get why this is a WONTFIX. I reported what is (now) apparently a dup: issue 18067. Just like the OP of this bug, I feel that in doing testing and such, one would naturally symlink and expect the library in the *current* directory to

[issue6386] importing yields unexpected results when initial script is a symbolic link

2013-05-27 Thread R. David Murray
R. David Murray added the comment: When a script is executed by python, it does *not* import from the CWD, it imports from the *location of the script*. From this, then, you can see that there are two possible interpretations of the location of the script when the script is a symlink, and we

[issue6386] importing yields unexpected results when initial script is a symbolic link

2013-05-27 Thread Nick Coghlan
Nick Coghlan added the comment: The current behaviour is also needed to sanely support Python scripts symlinked from Linux /bin directories. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6386

[issue6386] importing yields unexpected results when initial script is a symbolic link

2013-05-27 Thread Shriramana Sharma
Shriramana Sharma added the comment: The current behaviour is also needed to sanely support Python scripts symlinked from Linux /bin directories. OK that clinched it for me -- I can't argue against that! And obviously it is not meaningful to copy/symlink *all* the current-directory modules

[issue6386] importing yields unexpected results when initial script is a symbolic link

2013-05-27 Thread Nick Coghlan
Nick Coghlan added the comment: That's fair - reopening this as a docs bug. -- assignee: brett.cannon - components: +Documentation resolution: wont fix - stage: test needed - needs patch status: closed - open type: behavior - enhancement versions: -Python 3.2

[issue6386] importing yields unexpected results when initial script is a symbolic link

2013-04-18 Thread Mark Lawrence
Mark Lawrence added the comment: It will be difficult to take this forward owing to the problem description in msg89914 being limited to importing from normal files in the same directory does not work. Plus any problems back then may well have been fixed due to the reworking of the import

[issue6386] importing yields unexpected results when initial script is a symbolic link

2013-04-18 Thread Brett Cannon
Brett Cannon added the comment: In case someone wants to reproduce: mkdir pkg echo import tester pkg/symlinked.py ln -s pkg/symlinked.py linked.py echo print('HIT') tester.py That fails because Python assumes you are in the pkg directory, not the directory you started execution.

[issue6386] importing yields unexpected results when initial script is a symbolic link

2012-11-12 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +eric.snow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6386 ___ ___ Python-bugs-list

[issue6386] importing yields unexpected results when initial script is a symbolic link

2012-11-09 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +brett.cannon, ncoghlan versions: +Python 3.3, Python 3.4 -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6386 ___

[issue6386] importing yields unexpected results when initial script is a symbolic link

2010-07-10 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- stage: - unit test needed versions: +Python 3.2 -Python 2.4, Python 2.5, Python 2.6, Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6386

[issue6386] importing yields unexpected results when initial script is a symbolic link

2009-06-30 Thread jbeulich
New submission from jbeulich jbeul...@novell.com: Due to the way PySys_SetArgv() works, when the initial script is a symbolic link, importing from normal files in the same directory does not work. This is particularly surprising when the work tree is a symlinked clone (cp -s) of an original

[issue6386] importing yields unexpected results when initial script is a symbolic link

2009-06-30 Thread jan matejek
Changes by jan matejek jmate...@suse.cz: -- nosy: +matejcik ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6386 ___ ___ Python-bugs-list mailing