Message277743
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. |
|
Date |
User |
Action |
Args |
2016-09-30 06:41:43 | terry.reedy | set | recipients:
+ terry.reedy, markroseman |
2016-09-30 06:41:43 | terry.reedy | set | messageid: <1475217703.73.0.785793929874.issue25488@psf.upfronthosting.co.za> |
2016-09-30 06:41:43 | terry.reedy | link | issue25488 messages |
2016-09-30 06:41:42 | terry.reedy | create | |
|