def main(): print "MakeHuman v%s" % getVersionDigitsStr() print getCopyrightMessage(short=True) + "\n" try: set_sys_path() make_user_dir() get_platform_paths() redirect_standard_streams() get_hg_revision() os.environ['MH_VERSION'] = getVersionStr() os.environ['MH_SHORT_VERSION'] = getShortVersion() os.environ['MH_MESH_VERSION'] = getBasemeshVersion() args = parse_arguments() init_logging() except Exception as e: print >> sys.stderr, "error: " + format(unicode(e)) import traceback bt = traceback.format_exc() print >> sys.stderr, bt return # Pass release info to debug dump using environment variables os.environ['MH_FROZEN'] = "Yes" if isBuild() else "No" os.environ['MH_RELEASE'] = "Yes" if isRelease() else "No" debug_dump() from core import G G.args = args # Set numpy properties if not args.get('debugnumpy', False): import numpy # Suppress runtime errors numpy.seterr(all = 'ignore') # -o or --output option given -> run in headless mode runHeadless = bool( args.get("output", None) ) if runHeadless: import headless headless.run(args) else: # Here pyQt and PyOpenGL will be imported from mhmain import MHApplication application = MHApplication() application.run() #import cProfile #cProfile.run('application.run()') close_standard_streams()
def main(): # print "MakeHuman v%s" % getVersionDigitsStr() # print getCopyrightMessage(short=True) + "\n" try: set_sys_path() make_user_dir() get_platform_paths() redirect_standard_streams() get_hg_revision() os.environ['MH_VERSION'] = getVersionStr() os.environ['MH_SHORT_VERSION'] = getShortVersion() os.environ['MH_MESH_VERSION'] = getBasemeshVersion() args = parse_arguments() init_logging() except Exception as e: print >> sys.stderr, "error: " + format(unicode(e)) import traceback bt = traceback.format_exc() print >> sys.stderr, bt return # Pass release info to debug dump using environment variables os.environ['MH_FROZEN'] = "Yes" if isBuild() else "No" os.environ['MH_RELEASE'] = "Yes" if isRelease() else "No" debug_dump() from core import G G.args = args # Set numpy properties if not args.get('debugnumpy', False): import numpy # Suppress runtime errors numpy.seterr(all='ignore') # -o or --output option given -> run in headless mode runHeadless = bool(args.get("output", None)) if runHeadless: import headless headless.run(args) else: # Here pyQt and PyOpenGL will be imported from mhmain import MHApplication application = MHApplication() application.run() #import cProfile #cProfile.run('application.run()') close_standard_streams()
def main(): get_platform_paths() redirect_standard_streams() set_sys_path() get_svn_revision() make_user_dir() init_logging() debug_dump() from mhmain import MHApplication application = MHApplication() application.run() #import cProfile #cProfile.run('application.run()') close_standard_streams()
def main(): get_platform_paths() redirect_standard_streams() get_svn_revision() set_sys_path() make_user_dir() init_logging() debug_dump() from mhmain import MHApplication application = MHApplication() application.run() #import cProfile #cProfile.run('application.run()') close_standard_streams()
def main(): print(getCopyrightMessage(short=True) + "\n") try: set_sys_path() args = parse_arguments() from core import G G.args = args make_user_dir() get_platform_paths() redirect_standard_streams() get_hg_revision() os.environ['MH_VERSION'] = getVersionStr() os.environ['MH_SHORT_VERSION'] = getShortVersion() os.environ['MH_MESH_VERSION'] = getBasemeshVersion() init_logging() except Exception as e: print("error: " + format(str(e)), file=sys.stderr) import traceback bt = traceback.format_exc() print(bt, file=sys.stderr) return # Pass release info to debug dump using environment variables os.environ['MH_FROZEN'] = "Yes" if isBuild() else "No" os.environ['MH_RELEASE'] = "Yes" if isRelease() else "No" debug_dump() # Set numpy properties if not G.args.get('debugnumpy', False): import numpy # Suppress runtime errors numpy.seterr(all = 'ignore') # Here pyQt and PyOpenGL will be imported from mhmain import MHApplication application = MHApplication() application.run() #import cProfile #cProfile.run('application.run()') close_standard_streams()