mailr8387 - /branches/bmrb/generic_fns/bmrb.py


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

Header


Content

Posted by edward on January 11, 2009 - 17:29:
Author: bugman
Date: Sun Jan 11 17:29:45 2009
New Revision: 8387

URL: http://svn.gna.org/viewcvs/relax?rev=8387&view=rev
Log:
Fix for the write() function.  The directory for placing the file into is now 
created.


Modified:
    branches/bmrb/generic_fns/bmrb.py

Modified: branches/bmrb/generic_fns/bmrb.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/bmrb/generic_fns/bmrb.py?rev=8387&r1=8386&r2=8387&view=diff
==============================================================================
--- branches/bmrb/generic_fns/bmrb.py (original)
+++ branches/bmrb/generic_fns/bmrb.py Sun Jan 11 17:29:45 2009
@@ -29,7 +29,7 @@
 # relax module imports.
 from data import Relax_data_store; ds = Relax_data_store()
 from relax_errors import RelaxError, RelaxFileError, 
RelaxFileOverwriteError, RelaxNoPipeError
-from relax_io import get_file_path
+from relax_io import get_file_path, mkdir_nofail
 from specific_fns.setup import get_specific_fn
 
 
@@ -96,5 +96,8 @@
     # Print out.
     print "Opening the file '%s' for writing." % file_path
 
+    # Create the directories.
+    mkdir_nofail(directory, verbosity=0)
+
     # Execute the specific BMRB writing code.
     write_function(file_path)




Related Messages


Powered by MHonArc, Updated Sun Jan 11 17:40:02 2009