예제 #1
0
파일: execute.py 프로젝트: tito/telenium
def run_executable(executable_name):
    # insert the telenium module path
    # we do the import here to be able to load kivy args
    from kivy.modules import Modules
    from kivy.config import Config
    from os.path import dirname, join
    import runpy

    Modules.add_path(join(dirname(__file__), "mods"))
    Config.set("modules", "telenium_client", "")
    runpy.run_path(executable_name, run_name="__main__")
예제 #2
0
def run_executable(executable_name):
    # insert the telenium module path
    # we do the import here to be able to load kivy args
    from kivy.modules import Modules
    from kivy.config import Config
    from os.path import dirname, join
    import runpy

    Modules.add_path(join(dirname(__file__), "mods"))
    Config.set("modules", "telenium_client", "")
    runpy.run_path(executable_name, run_name="__main__")
예제 #3
0
import sys
import kivy
from kivy.modules import Modules
from kivy.config import Config
from os.path import dirname, join
import runpy

# insert the telenium module path
Modules.add_path(join(dirname(__file__), "mods"))
Config.set("modules", "telenium_client", "")
executable_name = sys.argv[1]
runpy.run_path(executable_name, run_name="__main__")
예제 #4
0
def run_executable(executable_name):
    # insert the telenium module path
    Modules.add_path(join(dirname(__file__), "mods"))
    Config.set("modules", "telenium_client", "")
    runpy.run_path(executable_name, run_name="__main__")