Author: bugman Date: Mon Apr 23 11:41:40 2012 New Revision: 15795 URL: http://svn.gna.org/viewcvs/relax?rev=15795&view=rev Log: Fix for the information print out on MS Windows. The 'file' command is not present on Windows systems. Modified: 1.3/info.py Modified: 1.3/info.py URL: http://svn.gna.org/viewcvs/relax/1.3/info.py?rev=15795&r1=15794&r2=15795&view=diff ============================================================================== --- 1.3/info.py (original) +++ 1.3/info.py Mon Apr 23 11:41:40 2012 @@ -150,6 +150,10 @@ @return: The single line file type information string. @rtype: str """ + + # MS Windows (has no 'file' command or libmagic, so return nothing). + if hasattr(ctypes, 'windll'): + return '' # The command. cmd = 'file -b %s' % path