[New-bugs-announce] [issue27874] inconsistent sys.path behavior when using PythonXX.zip

Joseph Shen report at bugs.python.org
Sat Aug 27 03:16:24 EDT 2016


New submission from Joseph Shen:

Found a inconsistent sys.path result when python packed with it's library with zip package.

A. when NOT use zip package
   sys.path is base the python.exe's absolute path, result is 
        1. ABS_PATH\pythonXX.zip
        2. ABS_PATH\DLLs
        3. ABS_PATH\lib, 
        4. ABS_PATH
        5. ABS_PATH\lib\site-packages

B. when use zip package
   sys.path is base the relative path of call path, result is 
        1. ABS_PATH\pythonXX.zip
        2. RLT_PATH\DLLs
        3. RLT_PATH\lib, 
        4. ABS_PATH

this is not commonly expected for the `DLLs` and `lib`, I think
the result will still be absolute path for where the executable
located. 

I snapshot two pictures for this problem, please review this,
thanks.

----------
components: Windows
files: 2016-08-27_15-09-39.png
messages: 273763
nosy: Joseph.Shen, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: inconsistent sys.path behavior when using PythonXX.zip
type: behavior
versions: Python 3.5
Added file: https://bugs.python.org/file44238/2016-08-27_15-09-39.png

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue27874>
_______________________________________


More information about the New-bugs-announce mailing list