mailr6654 - /1.3/generic_fns/structure/main.py


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

Header


Content

Posted by edward on July 04, 2008 - 12:06:
Author: bugman
Date: Fri Jul  4 12:06:23 2008
New Revision: 6654

URL: http://svn.gna.org/viewcvs/relax?rev=6654&view=rev
Log:
A PDB file now can be specified without the '.pdb' ending.


Modified:
    1.3/generic_fns/structure/main.py

Modified: 1.3/generic_fns/structure/main.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/generic_fns/structure/main.py?rev=6654&r1=6653&r2=6654&view=diff
==============================================================================
--- 1.3/generic_fns/structure/main.py (original)
+++ 1.3/generic_fns/structure/main.py Fri Jul  4 12:06:23 2008
@@ -167,6 +167,10 @@
     # The file path.
     file_path = get_file_path(file, dir)
 
+    # Try adding '.pdb' to the end of the file path, if the file can't be 
found.
+    if not access(file_path, F_OK):
+        file_path = file_path + '.pdb'
+
     # Test if the file exists.
     if not access(file_path, F_OK):
         if fail:




Related Messages


Powered by MHonArc, Updated Fri Jul 04 12:40:18 2008