Author: bugman Date: Thu May 10 16:57:29 2012 New Revision: 16195 URL: http://svn.gna.org/viewcvs/relax?rev=16195&view=rev Log: Fix for the pymol and molmol macro_write user functions - the file name can be None! Modified: branches/uf_redesign/user_functions/molmol.py branches/uf_redesign/user_functions/pymol_control.py Modified: branches/uf_redesign/user_functions/molmol.py URL: http://svn.gna.org/viewcvs/relax/branches/uf_redesign/user_functions/molmol.py?rev=16195&r1=16194&r2=16195&view=diff ============================================================================== --- branches/uf_redesign/user_functions/molmol.py (original) +++ branches/uf_redesign/user_functions/molmol.py Thu May 10 16:57:29 2012 @@ -267,7 +267,8 @@ py_type = "str", arg_type = "file sel", desc_short = "file name", - desc = "The optional name of the file." + desc = "The optional name of the file.", + can_be_none = True ) uf.add_keyarg( name = "dir", Modified: branches/uf_redesign/user_functions/pymol_control.py URL: http://svn.gna.org/viewcvs/relax/branches/uf_redesign/user_functions/pymol_control.py?rev=16195&r1=16194&r2=16195&view=diff ============================================================================== --- branches/uf_redesign/user_functions/pymol_control.py (original) +++ branches/uf_redesign/user_functions/pymol_control.py Thu May 10 16:57:29 2012 @@ -331,7 +331,8 @@ py_type = "str", arg_type = "file sel", desc_short = "file name", - desc = "The optional name of the file." + desc = "The optional name of the file.", + can_be_none = True ) uf.add_keyarg( name = "dir",