Beispiel #1
0
def setup_and_run():
    # import only on run
    # Dont import always this, setup.py will fail
    from ninja_ide import core

    # Run NINJA-IDE
    core.run_ninja()
Beispiel #2
0
def setup_and_run():
    # import only on run
    # Dont import always this, setup.py will fail
    from ninja_ide import core
    from multiprocessing import freeze_support
    #from PyQt4.QtCore import QDir
    import os
    #import shutil
    '''
    HOME_DIR = QDir.toNativeSeparators(QDir.homePath())
    if os.path.exists(os.path.join(HOME_DIR, '.alexa_ide')) is False:
        script_path = os.path.realpath(__file__)
        #script_path = os.path.abspath(__file__)
        script_path = os.path.dirname(script_path)
        #alexa_user_dir = QDir.toNativeSeparators("../")
        #alexa_user_dir = os.path.join(alexa_user_dir, script_path)
        alexa_user_filesdir = os.path.join(os.path.dirname(script_path), "user_files" + os.sep + "alexa_ide")
        #print alexa_user_filesdir
        shutil.copytree(alexa_user_filesdir, os.path.join(HOME_DIR, ".alexa_ide"))
    '''

    # Used to support multiprocessing on windows packages
    freeze_support()

    # Run NINJA-IDE
    core.run_ninja()
Beispiel #3
0
def setup_and_run():
    # import only on run
    # Dont import always this, setup.py will fail
    from ninja_ide import core

    # Run NINJA-IDE
    core.run_ninja()
Beispiel #4
0
def setup_and_run():
    # import only on run
    # Dont import always this, setup.py will fail
    from ninja_ide import core
    from multiprocessing import freeze_support

    # Used to support multiprocessing on windows packages
    freeze_support()

    # Run NINJA-IDE
    core.run_ninja()
Beispiel #5
0
def setup_and_run():
    # import only on run
    # Dont import always this, setup.py will fail
    from ninja_ide import core
    from multiprocessing import freeze_support

    # Used to support multiprocessing on windows packages
    freeze_support()

    # Run NINJA-IDE
    core.run_ninja()
Beispiel #6
0
def setup_and_run():
    """Load the Core module and trigger the execution."""
    # import only on run
    # Dont import always this, setup.py will fail
    from ninja_ide import core
    from multiprocessing import freeze_support

    # Used to support multiprocessing on windows packages
    freeze_support()

    # Run NINJA-IDE
    core.run_ninja()
Beispiel #7
0
def setup_and_run():

    # import only on run
    # si se importa siempre el setup.py va a tratar de importar este modulo
    # para leer la metadata y al importar las demas cosas empieza a fallar todo
    # y todo EXPLOTA!!!!!
    from ninja_ide import core, resources

    # Creamos la estructura para guardar nuestros datos
    resources.create_home_dir_structure()

    # Arrancamos ninja
    core.run_ninja()
Beispiel #8
0
def setup_and_run():

    # import only on run
    # si se importa siempre el setup.py va a tratar de importar este modulo
    # para leer la metadata y al importar las demas cosas empieza a fallar todo
    # y todo EXPLOTA!!!!!
    from ninja_ide import core, resources

    # Creamos la estructura para guardar nuestros datos
    resources.create_home_dir_structure()

    # Arrancamos ninja
    core.run_ninja()
Beispiel #9
0
def setup_and_run():
    """Load the Core module and trigger the execution."""
    # Create NINJA-IDE user folder structure for plugins, themes, etc
    from ninja_ide import resources
    resources.create_home_dir_structure()

    ###########################################################################
    # Start Virtual Env that supports encapsulation of plugins
    ###########################################################################
    from ninja_ide.core.encapsulated_env import nenvironment  # lint:ok

    # import only on run
    # Dont import always this, setup.py will fail
    from ninja_ide import core
    from ninja_ide import ninja_resources  # lint:ok
    from multiprocessing import freeze_support

    # Used to support multiprocessing on windows packages
    freeze_support()

    # Run NINJA-IDE
    core.run_ninja()
Beispiel #10
0
def setup_and_run():
    """Load the Core module and trigger the execution."""
    # Create NINJA-IDE user folder structure for plugins, themes, etc
    from ninja_ide import resources
    resources.create_home_dir_structure()

    ###########################################################################
    # Start Virtual Env that supports encapsulation of plugins
    ###########################################################################
    from ninja_ide.core.encapsulated_env import nenvironment  # lint:ok

    # import only on run
    # Dont import always this, setup.py will fail
    from ninja_ide import core
    from ninja_ide import ninja_resources  # lint:ok
    from multiprocessing import freeze_support

    # Used to support multiprocessing on windows packages
    freeze_support()

    # Run NINJA-IDE
    core.run_ninja()