Author: bugman Date: Fri Jun 11 13:46:02 2010 New Revision: 11230 URL: http://svn.gna.org/viewcvs/relax?rev=11230&view=rev Log: Bug fix for the control of PyMOL (as a module). 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=11230&r1=11229&r2=11230&view=diff ============================================================================== --- 1.3/generic_fns/pymol_control.py (original) +++ 1.3/generic_fns/pymol_control.py Fri Jun 11 13:46:02 2010 @@ -76,8 +76,10 @@ if not self.running(): self.open_gui() - # Write the command to the pipe. - if self.exec_mode == 'external': + # Execute the command. + if self.exec_mode == 'module': + pymol.cmd.do(command) + else: self.pymol.write(command + '\n') # Place the command in the command history. @@ -91,7 +93,6 @@ # Use the PyMOL python modules. if self.exec_mode == 'module': # Open the GUI. - pymol.start_pymol() pymol.finish_launching() self.open = True