Hi,
I have written small application to fetch molecules stored in database and display selected with pymol. Unfortunately issuing command pymol.cmd.read_sdfstr() or pymol.cmd.load() results in "broken" molecules - just as it is on attached image. At the same time I loose ability to pick molecules via open/save dialogs, only keyboard works
My code to run pymol as thread is:
def run():
__main__.pymol_launch = 0
if hasattr(__main__,"pymol_argv"):
pymol_argv = __main__.pymol_argv
else:
pymol_argv = sys.argv
modules_path = os.environ['PYMOL_PATH']+'/modules'
if modules_path not in sys.path:
sys.path.append(modules_path)
import pymol
pymol.invocation.parse_args(pymol_argv)
pymol.start_pymol()
#----------------------------------------------#
t = threading.Thread(target=run)
t.setDaemon(1)
t.start()
Thank you in advance for any help
screenshot of badly rendered rhodopsin