Author: bugman
Date: Thu Nov 13 10:20:43 2014
New Revision: 26558
URL: http://svn.gna.org/viewcvs/relax?rev=26558&view=rev
Log:
Added a debugging Python version check to the
devel_scripts/memory_leak_test_relax_fit.py script.
This prevents the script from being executed with a normal Python binary.
Modified:
trunk/devel_scripts/memory_leak_test_relax_fit.py
Modified: trunk/devel_scripts/memory_leak_test_relax_fit.py
URL:
http://svn.gna.org/viewcvs/relax/trunk/devel_scripts/memory_leak_test_relax_fit.py?rev=26558&r1=26557&r2=26558&view=diff
==============================================================================
--- trunk/devel_scripts/memory_leak_test_relax_fit.py (original)
+++ trunk/devel_scripts/memory_leak_test_relax_fit.py Thu Nov 13 10:20:43 2014
@@ -16,6 +16,11 @@
# Python module imports.
from os import sep
import sys
+
+# Check.
+if not hasattr(sys, 'gettotalrefcount'):
+ print("This is not a debugging compiled version of Python, quitting!")
+ sys.exit()
# relax module imports.
from data_store import Relax_data_store; ds = Relax_data_store()
_______________________________________________
relax (http://www.nmr-relax.com)
This is the relax-commits mailing list
[email protected]
To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits