[New-bugs-announce] [issue29578] "python.exe t2.py" doesn't work the same on Pythn-3.6 as Python-3.5

Big Stone report at bugs.python.org
Thu Feb 16 03:56:15 EST 2017


New submission from Big Stone:

Hi,

I have two file "t1.py" and "t2.py" in the same directory. "t2.py" can't import "t1.py" when launched from python.exe on Python-3.6. it was ok on Python-3.5 (all other things being equal). And it's ok when launched from IDLE.

Has there been a volontary change ?
t1.py:
print("i am t1")

t2.py:
import t1
print("I am t2")

result (on WinPython-3.6):
python.Exe C:\WinPython\basedir36\buildZero\winpython-64bit-3.6.x.2\test\t2.py

Traceback (most recent call last):
  File "C:\WinPython\basedir36\buildZero\winpython-64bit-3.6.x.2\test\t2.py", line 1, in <module>
    import t1
ModuleNotFoundError: No module named 't1'

C:\WinPython\basedir36\buildZero\winpython-64bit-3.6.x.2\scripts>

nota: Winpython specificity is the use of python._pth, with:
python36.zip
DLLs
Lib
.
import site

----------
components: Windows
messages: 287919
nosy: Big Stone, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: "python.exe t2.py" doesn't work the same on Pythn-3.6 as Python-3.5
type: behavior
versions: Python 3.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29578>
_______________________________________


More information about the New-bugs-announce mailing list