mailr17801 - /trunk/auto_analyses/stereochem_analysis.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on October 15, 2012 - 10:39:
Author: bugman
Date: Mon Oct 15 10:39:20 2012
New Revision: 17801

URL: http://svn.gna.org/viewcvs/relax?rev=17801&view=rev
Log:
Python 2.3 and earlier fix - the subprocess module is only imported when 
present.

This is for the stereochem_analysis auto-analysis, but the import kills all 
of the auto-analyses.


Modified:
    trunk/auto_analyses/stereochem_analysis.py

Modified: trunk/auto_analyses/stereochem_analysis.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/auto_analyses/stereochem_analysis.py?rev=17801&r1=17800&r2=17801&view=diff
==============================================================================
--- trunk/auto_analyses/stereochem_analysis.py (original)
+++ trunk/auto_analyses/stereochem_analysis.py Mon Oct 15 10:39:20 2012
@@ -55,12 +55,16 @@
         Q_total^2 = Q_NOE^2 + Q_RDC^2.
 """
 
+# Dependencies.
+import dep_check
+
 # Python module imports.
 from math import pi, sqrt
 from os import F_OK, access, getcwd, sep
 from random import randint
 from re import search
-from subprocess import PIPE, Popen
+if dep_check.subprocess_module:
+    from subprocess import PIPE, Popen
 import sys
 
 # relax module imports.




Related Messages


Powered by MHonArc, Updated Mon Oct 15 11:00:02 2012