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 terry.reedy
Recipients markroseman, terry.reedy
Date 2016-09-30.06:41:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1475217703.73.0.785793929874.issue25488@psf.upfronthosting.co.za>
In-reply-to
Content
sys.path for 3.6.0b1 on Win 10.
Start python from icon (start menu), console (py -3.6) or Explorer (click on python.exe)
'',
'C:\\Programs\\Python36\\python36.zip',
'C:\\Programs\\Python36\\DLLs',
'C:\\Programs\\Python36\\lib',
'C:\\Programs\\Python36',
'C:\\Programs\\Python36\\lib\\site-packages',

Start Python from Explorer by double-clicking *.py file or context menu 'Open': replace '' with
'C:/user/Terry/lib'  # directory containing file.

Running 'import sys; sys.path' (in user process) from IDLE Shell adds the following after ''.
Start IDLE from icon:
'C:\\Programs\\Python36\\Lib\\idlelib',
Start IDLE in console with py -3.6 -m idlelib:
'F:\\Python\\dev'  # the CWD of the console
Start IDLE in console with py -3.6 -m idlelib.idle:
'C:\\Programs\\Python36\\lib',  # duplicate added by idle.py
'F:\\Python\\dev'  # the CWD of the console
Start IDLE from Python with 'import idlelib.idle'
'C:\\Programs\\Python36\\lib',  # duplicate added by idle.py
'C:\\Programs\\Python36'  # the CWD of the running Python (dup)

Currently, idle.py inserts the directory containing idlelib into sys.path.  This is a duplicate unless running idlelib in a non-stanard location.  Check first.
History
Date User Action Args
2016-09-30 06:41:43terry.reedysetrecipients: + terry.reedy, markroseman
2016-09-30 06:41:43terry.reedysetmessageid: <1475217703.73.0.785793929874.issue25488@psf.upfronthosting.co.za>
2016-09-30 06:41:43terry.reedylinkissue25488 messages
2016-09-30 06:41:42terry.reedycreate