]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
PYTHONSTARTUP read even in python -i mode to ease usage.
authorageay <ageay>
Fri, 13 Jul 2012 09:46:22 +0000 (09:46 +0000)
committerageay <ageay>
Fri, 13 Jul 2012 09:46:22 +0000 (09:46 +0000)
src/MEDCoupling_Swig/MEDCouplingCommon.i

index 3db9f117851f892c9910be6134aa8cf5ac5dbb8e..ee7c9011fa2df1ccd2d4426fa18902cdadc34653 100644 (file)
@@ -6792,3 +6792,11 @@ namespace ParaMEDMEM
       }
   };
 }
+
+%pythoncode %{
+import os
+__filename=os.environ.get('PYTHONSTARTUP')
+if __filename and os.path.isfile(__filename):
+  execfile(__filename)
+  pass
+%}