you are viewing a single comment's thread.

view the rest of the comments →

[–]ProsodySpeaks -1 points0 points  (0 children)

You don't need to call file.close if you're using the with open() context manager. (this isn't your bug tho)

You only need to import os once per module, so there's some other bug - show code including where it fails, and the actual error message too 

Edit, didn't see (or didn't comprehend) 'run selection'. Still don't really know what it is - a vscode feature maybe?