示例#1
0
 def finish_launching(args=None):
     if args == None:
         args = pymol_argv+["-K"] # keep PyMOL thread alive
     else:
         args = list(args)
     if pymol_launch == 2: # spawn thread -- 'import pymol'
         global glutThreadObject
         cmd.reaper = threading.currentThread()
         glutThreadObject = threading.Thread(target=thread_launch,
           args=(args,)) 
         glutThreadObject.start()
     _COb = _cmd._get_global_C_object()
     e=threading.Event()
     import pymol # wait for import to complete
     while not _cmd.ready(_COb): # wait for the C library to initialize
         e.wait(0.01)
     while not hasattr(pymol,'xray'): # make sure symmetry module has time to start...
         e.wait(0.01)
示例#2
0
 def finish_launching(args=None):
     if args == None:
         args = pymol_argv + ["-K"]  # keep PyMOL thread alive
     else:
         args = list(args)
     if pymol_launch == 2:  # spawn thread -- 'import pymol'
         global glutThreadObject
         cmd.reaper = threading.currentThread()
         glutThreadObject = threading.Thread(target=thread_launch,
                                             args=(args, ))
         glutThreadObject.start()
     _COb = _cmd._get_global_C_object()
     e = threading.Event()
     import pymol  # wait for import to complete
     while not _cmd.ready(_COb):  # wait for the C library to initialize
         e.wait(0.01)
     while not hasattr(
             pymol,
             'xray'):  # make sure symmetry module has time to start...
         e.wait(0.01)
示例#3
0
def ready(_self=cmd): # INTERNAL
    # WARNING: internal routine, subject to change
    return _cmd.ready(_self._COb)