Commit d082b6ea authored by Neal Norwitz's avatar Neal Norwitz

os.getcwd() now returns a normal string (ie, unicode)

parent 19b4a272
......@@ -1365,11 +1365,8 @@ def main():
if not dir in sys.path:
sys.path.insert(0, dir)
else:
dir = str(os.getcwd()) ### os.getcwd() returning str8 but sys.path
### items are type 'str'. Remove the cast
### when fixed and assertion fails
assert isinstance(os.getcwd(), str8) ###
if not dir in sys.path:
dir = os.getcwd()
if dir not in sys.path:
sys.path.insert(0, dir)
# check the IDLE settings configuration (but command line overrides)
edit_start = idleConf.GetOption('main', 'General',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment