Author: bugman Date: Mon Aug 29 15:10:50 2011 New Revision: 14510 URL: http://svn.gna.org/viewcvs/relax?rev=14510&view=rev Log: Bug fix for the pymol.macro_apply user function - the command history is now cleared. Without this, previous macro files will be executed, but if they were temporary and no longer exist, then pymol fails. Modified: 1.3/generic_fns/pymol_control.py Modified: 1.3/generic_fns/pymol_control.py URL: http://svn.gna.org/viewcvs/relax/1.3/generic_fns/pymol_control.py?rev=14510&r1=14509&r2=14510&view=diff ============================================================================== --- 1.3/generic_fns/pymol_control.py (original) +++ 1.3/generic_fns/pymol_control.py Mon Aug 29 15:10:50 2011 @@ -372,6 +372,9 @@ if not exists_mol_res_spin_data(): raise RelaxNoSequenceError + # Clear the PyMOL history first. + pymol_obj.clear_history() + # Create the macro. commands = create_macro(data_type=data_type, style=style, colour_start=colour_start, colour_end=colour_end, colour_list=colour_list)