Author: bugman Date: Tue Jun 24 23:24:56 2008 New Revision: 6480 URL: http://svn.gna.org/viewcvs/relax?rev=6480&view=rev Log: Bug fix for the relax_io.get_file_path() function. The file path of None can now be handled. Modified: 1.3/relax_io.py Modified: 1.3/relax_io.py URL: http://svn.gna.org/viewcvs/relax/1.3/relax_io.py?rev=6480&r1=6479&r2=6480&view=diff ============================================================================== --- 1.3/relax_io.py (original) +++ 1.3/relax_io.py Tue Jun 24 23:24:56 2008 @@ -161,7 +161,8 @@ file_path = dir + '/' + file_path # Expand any ~ characters. - file_path = expanduser(file_path) + if file_path: # Catch a file path of None, as expanduser can't handle this. + file_path = expanduser(file_path) # Return the file path. return file_path