Author: bugman Date: Sat Jun 28 19:21:48 2008 New Revision: 6522 URL: http://svn.gna.org/viewcvs/relax?rev=6522&view=rev Log: Bug fix for the read() function, the file_path object did not exist. Modified: 1.3/generic_fns/results.py Modified: 1.3/generic_fns/results.py URL: http://svn.gna.org/viewcvs/relax/1.3/generic_fns/results.py?rev=6522&r1=6521&r2=6522&view=diff ============================================================================== --- 1.3/generic_fns/results.py (original) +++ 1.3/generic_fns/results.py Sat Jun 28 19:21:48 2008 @@ -27,7 +27,7 @@ # relax module imports. from data import Relax_data_store; ds = Relax_data_store() from relax_errors import RelaxError, RelaxFileEmptyError, RelaxNoPipeError -from relax_io import extract_data, open_read_file, open_write_file, strip +from relax_io import extract_data, get_file_path, open_read_file, open_write_file, strip from specific_fns.setup import get_specific_fn, get_string @@ -115,6 +115,9 @@ if not ds[ds.current_pipe].is_empty(): raise RelaxError, "The current data pipe is not empty." + # Get the full file path, for later use. + file_path = get_file_path(file_name=file, dir=directory) + # Open the file. file = open_read_file(file_name=file, dir=directory)