def main(): "starts CMM" modules = os.path.join(os.getcwd(), "Papyer", "Modules") # starting try: if modules not in sys.path: sys.path.append(modules) from starter import main as start except Exception as e: root = makeRoot() messagebox.showinfo(title = "Error", icon = "error", detail = e, message = "Unable to start PaPyer! Try again.") root.destroy() else: start()
def main(): "starts CMM" modules = os.path.join(os.getcwd(), "Stuff", "Modules") # developer? try: if os.path.exists(modules): sys.path.append(modules) from optionget import optionGet if optionGet("Developer", False, 'bool'): from starter import main as start start() return except Exception: pass # new version? try: if os.path.exists(modules): if modules not in sys.path: sys.path.append(modules) from version import version version = version() else: version = [0, 3, 4] except Exception: version = [0, 3, 4] try: checkNewVersion(version) except Exception: pass # starting try: if modules not in sys.path: sys.path.append(modules) from starter import main as start except Exception as e: root = makeRoot() messagebox.showinfo(title="Error", icon="error", detail=e, message="Unable to start CMM! Try again.") root.destroy() else: start()
def main(): "starts CMM" modules = os.path.join(os.getcwd(), "Stuff", "Modules") # developer? try: if os.path.exists(modules): sys.path.append(modules) from optionget import optionGet if optionGet("Developer", False, 'bool'): from starter import main as start start() return except Exception: pass # new version? try: if os.path.exists(modules): if modules not in sys.path: sys.path.append(modules) from version import version version = version() else: version = [0, 3, 4] except Exception: version = [0, 3, 4] try: checkNewVersion(version) except Exception: pass # starting try: if modules not in sys.path: sys.path.append(modules) from starter import main as start except Exception as e: root = makeRoot() messagebox.showinfo(title = "Error", icon = "error", detail = e, message = "Unable to start CMM! Try again.") root.destroy() else: start()
print 'Finished to generate schema.' # generate Ldap Data if d['generateLdapDataLdif'] == 'true': print 'Start to generate ldap data...' generateData.generateDataLdif() print 'Finished to generate ldap data.' # configure DS with schema and data if d['configureDS'] == 'true': print 'Start to configure Directory Server...' configureDS.configureDirectoryServer(d) print 'Finished to configure Directory Server.' if d['buildOX'] == 'true': print 'Start to build OX...' build.buildOx(d) print 'Finished to build OX.' if d['deployOX'] == 'true': print 'Start to deploy OX...' deploy.deployOx(d) print 'Finished to deploy OX.' if d['startContainer'] == 'true': print 'Start Application Container...' starter.start(d) print 'Finished to start Application Container.'