From 33b47fa3ad4dbacfa8adf15babf924db12800dd6 Mon Sep 17 00:00:00 2001
From: Marco Biasini <marco.biasini@unibas.ch>
Date: Wed, 31 Jul 2013 15:13:15 +0200
Subject: [PATCH] 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
---
 scripts/ost_startup.py.in | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/scripts/ost_startup.py.in b/scripts/ost_startup.py.in
index df65597b2..73cf24e88 100644
--- a/scripts/ost_startup.py.in
+++ b/scripts/ost_startup.py.in
@@ -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
-- 
GitLab