Skip to content
Snippets Groups Projects
Commit 0f693890 authored by Studer Gabriel's avatar Studer Gabriel
Browse files

Fix exec that runs ostrc

parent c933f04e
No related branches found
No related tags found
No related merge requests found
......@@ -189,7 +189,7 @@ home = os.getenv('HOME') or os.getenv('USERPROFILE')
_ostrc=os.path.join(home, '.ostrc')
if os.path.exists(_ostrc):
try:
exec(open(_ostrc))
exec(compile(open(_ostrc).read(), _ostrc, 'exec'))
except Exception as e:
print(e)
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment