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

This commit is contained in:
Kurt B. Kaiser 2007-08-23 06:17:40 +00:00
parent e071277939
commit 9a3b014f31
1 changed files with 4 additions and 1 deletions

View File

@ -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)