Beispiel #1
0
def _start_NE1():

    if _alternateSourcePath is not None:
        print
        print "WILL USE ALTERNATE_CAD_SRC_PATH = %r" % (_alternateSourcePath, )
        sys.path.insert(0, _alternateSourcePath)
        # see ne1_startup/ALTERNATE_CAD_SRC_PATH-doc.txt for info about other
        # effects of this (implemented by setAlternateSourcePath below)
        print

    # NOTE: imports of NE1 source modules MUST NOT BE DONE until after the
    # optional sys.path change done for _alternateSourcePath, just above.

    import utilities.EndUser as EndUser

    EndUser.setAlternateSourcePath(_alternateSourcePath)

    _main_globals = globals()  # needed by startup_script

    from ne1_startup.main_startup import startup_script

    startup_script(_main_globals)

    return
Beispiel #2
0
def _start_NE1():

    if _alternateSourcePath is not None:
        print
        print "WILL USE ALTERNATE_CAD_SRC_PATH = %r" % ( _alternateSourcePath,)
        sys.path.insert(0, _alternateSourcePath)
        # see ne1_startup/ALTERNATE_CAD_SRC_PATH-doc.txt for info about other
        # effects of this (implemented by setAlternateSourcePath below)
        print

    # NOTE: imports of NE1 source modules MUST NOT BE DONE until after the
    # optional sys.path change done for _alternateSourcePath, just above.

    import utilities.EndUser as EndUser

    EndUser.setAlternateSourcePath(_alternateSourcePath)

    _main_globals = globals() # needed by startup_script

    from ne1_startup.main_startup import startup_script

    startup_script( _main_globals )

    return