Commit 9a3b014f authored by Kurt B. Kaiser's avatar Kurt B. Kaiser

os.getcwd() is returning str8; sys.path items are str.

parent e0712779
...@@ -1365,7 +1365,10 @@ def main(): ...@@ -1365,7 +1365,10 @@ def main():
if not dir in sys.path: if not dir in sys.path:
sys.path.insert(0, dir) sys.path.insert(0, dir)
else: else:
dir = os.getcwd() 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: if not dir in sys.path:
sys.path.insert(0, dir) sys.path.insert(0, dir)
# check the IDLE settings configuration (but command line overrides) # check the IDLE settings configuration (but command line overrides)
......
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