Author: bugman Date: Wed Aug 20 14:28:35 2014 New Revision: 25094 URL: http://svn.gna.org/viewcvs/relax?rev=25094&view=rev Log: Minimised the dependencies of the version module. This no longer relies on the dep_check module. Modified: trunk/version.py Modified: trunk/version.py URL: http://svn.gna.org/viewcvs/relax/trunk/version.py?rev=25094&r1=25093&r2=25094&view=diff ============================================================================== --- trunk/version.py (original) +++ trunk/version.py Wed Aug 20 14:28:35 2014 @@ -22,14 +22,12 @@ # Module docstring. """Module for relax version information.""" -# Dependencies. -import dep_check - # Python module imports. from os import F_OK, access, sep -PIPE, Popen = None, None -if dep_check.subprocess_module: +try: from subprocess import PIPE, Popen +except ImportError: + PIPE, Popen = None, None # relax module imports. import lib.structure.internal.object