Skip to content
Snippets Groups Projects
Commit 33b47fa3 authored by Marco Biasini's avatar Marco Biasini
Browse files

don't create ~/.ostrc

fixes problems for users with read-only home directories. Plus,
it's easy enough for the user to create the file when it's
needed
parent d7882129
Branches
Tags
No related merge requests found
......@@ -60,15 +60,6 @@ if os.path.exists(_ostrc):
exec(open(_ostrc))
except Exception, e:
print e
else:
rcfile=open(_ostrc,"w")
print >> rcfile, '# This python file is parsed by ost and dng at startup'
print >> rcfile, '# Its content is be made available in the global namespace'
print >> rcfile, '# It can be used to define custom variables and functions'
print >> rcfile, '# For example:'
print >> rcfile, '# IMPORTANT_DIR="path/to/important/dir"'
rcfile.close()
PushVerbosityLevel(options.vlevel)
# this should probably only be added when running an interactive shell
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment