This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eryksun
Recipients eryksun, palm.kevin, paul.moore, steve.dower, tim.golden, zach.ware
Date 2016-07-15.01:33:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1468546429.83.0.865208132118.issue27516@psf.upfronthosting.co.za>
In-reply-to
Content
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']
History
Date User Action Args
2016-07-15 01:33:49eryksunsetrecipients: + eryksun, paul.moore, tim.golden, palm.kevin, zach.ware, steve.dower
2016-07-15 01:33:49eryksunsetmessageid: <1468546429.83.0.865208132118.issue27516@psf.upfronthosting.co.za>
2016-07-15 01:33:49eryksunlinkissue27516 messages
2016-07-15 01:33:49eryksuncreate