Author: bugman Date: Fri Jul 4 12:07:10 2008 New Revision: 6655 URL: http://svn.gna.org/viewcvs/relax?rev=6655&view=rev Log: Merged revisions 6654 via svnmerge from svn+ssh://bugman@xxxxxxxxxxx/svn/relax/1.3 ........ r6654 | bugman | 2008-07-04 12:06:23 +0200 (Fri, 04 Jul 2008) | 3 lines A PDB file now can be specified without the '.pdb' ending. ........ Modified: branches/rdc_analysis/ (props changed) branches/rdc_analysis/generic_fns/structure/main.py Propchange: branches/rdc_analysis/ ------------------------------------------------------------------------------ --- svnmerge-integrated (original) +++ svnmerge-integrated Fri Jul 4 12:07:10 2008 @@ -1,1 +1,1 @@ -/1.3:1-6651 +/1.3:1-6654 Modified: branches/rdc_analysis/generic_fns/structure/main.py URL: http://svn.gna.org/viewcvs/relax/branches/rdc_analysis/generic_fns/structure/main.py?rev=6655&r1=6654&r2=6655&view=diff ============================================================================== --- branches/rdc_analysis/generic_fns/structure/main.py (original) +++ branches/rdc_analysis/generic_fns/structure/main.py Fri Jul 4 12:07:10 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: