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 andyharrington, eryksun, jeff.allen, mark, ned.deily, rhettinger, serhiy.storchaka, steve.dower, terry.reedy
Date 2019-07-16.21:18:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
An implementation note mostly to myself: In 3.8 and before, 'python relative/path/to/' results in the __file__ attribute of the main module being the relative path, and a possibly unnormalized full path is os.curdir + __file__.  I believe that this is the only situation in which __file__ is not absolute.  After os.chdir(new cwd), relative __file__ becomes useless unless the original curdir is saved or  __file__ is made absolute first.  The startup part of pyshell has this vulnerable line.
    icondir = os.path.join(os.path.dirname(__file__), 'Icons')
But with curdir left alone when starting from a command line, there will be no problem.
Date User Action Args
2019-07-16 21:18:40terry.reedysetrecipients: + terry.reedy, rhettinger, andyharrington, mark, ned.deily, serhiy.storchaka, jeff.allen, eryksun, steve.dower
2019-07-16 21:18:40terry.reedysetmessageid: <>
2019-07-16 21:18:40terry.reedylinkissue22121 messages
2019-07-16 21:18:40terry.reedycreate