mailr6480 - /1.3/relax_io.py


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

Header


Content

Posted by edward on June 24, 2008 - 23:24:
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




Related Messages


Powered by MHonArc, Updated Tue Jun 24 23:40:18 2008