Message270454
It looks like you haven't copied pyvenv.cfg to your application directory, so Python isn't using the "applocal" configuration. That's why you're seeing the default paths that are relative to the current directory. It's also why PYTHONPATH and PYTHONHOME aren't ignored.
As to the extension modules, if you don't want them in the application directory, add them to the DLLs subdirectory. Here's a possible layout:
App\
DLLs\
_socket.pyd
...
Lib\
vendored_package
...
app.exe
pyvenv.cfg
python35.dll
python35.zip
vcruntime140.dll
I created this app in C:\Temp, and here's its sys.path:
['C:\\Temp\\App\\python35.zip', 'C:\\Temp\\App\\DLLs', 'C:\\Temp\\App\\lib', 'C:\\Temp\\App'] |
|
Date |
User |
Action |
Args |
2016-07-15 01:33:49 | eryksun | set | recipients:
+ eryksun, paul.moore, tim.golden, palm.kevin, zach.ware, steve.dower |
2016-07-15 01:33:49 | eryksun | set | messageid: <1468546429.83.0.865208132118.issue27516@psf.upfronthosting.co.za> |
2016-07-15 01:33:49 | eryksun | link | issue27516 messages |
2016-07-15 01:33:49 | eryksun | create | |
|