mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
bpo-8231: Call idlelib.IdleConf.GetUserCfgDir only once. (#2629)
This commit is contained in:
parent
24f2e19d68
commit
223c7e70e4
4 changed files with 8 additions and 7 deletions
|
|
@ -172,10 +172,10 @@ class IdleConf:
|
|||
"Populate default and user config parser dictionaries."
|
||||
#build idle install path
|
||||
if __name__ != '__main__': # we were imported
|
||||
idleDir=os.path.dirname(__file__)
|
||||
idleDir = os.path.dirname(__file__)
|
||||
else: # we were exec'ed (for testing only)
|
||||
idleDir=os.path.abspath(sys.path[0])
|
||||
userDir=self.GetUserCfgDir()
|
||||
idleDir = os.path.abspath(sys.path[0])
|
||||
self.userdir = userDir = self.GetUserCfgDir()
|
||||
|
||||
defCfgFiles = {}
|
||||
usrCfgFiles = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue