from Classes.Compiler import Compiler from Classes.Settings import Settings import sys import locale locale.setlocale(locale.LC_ALL, 'de_DE') settings = Settings() compiler = Compiler("./dist", "./nrtmp", "./Resources", sys.argv[1:]) # clean output folder compiler.clean_dist() # compile nightrain if compiler.is_windows(): compiler.compile_nightrain_windows() if compiler.is_linux(): compiler.compile_nightrain_linux() if compiler.is_mac(): compiler.compile_nightrain_mac() # compile PHP if compiler.is_windows(): compiler.compile_php_windows() if compiler.is_linux(): compiler.compile_php_linux()
__author__ = 'naetech' import os import module_locator from Classes.Settings import Settings from Classes.PHP import PHP from Classes.GUI import GUI program_path = module_locator.module_path() print("Program path is: %s" % program_path) program_settings = Settings() settings_file_path = "%s/%s" % (program_path, "settings.ini") program_settings.load_settings(settings_file_path) php_path = str(program_settings.read_setting("php_path")) if not os.path.exists(php_path): # perhaps we should try something relative php_path = "%s/%s" % (program_path, php_path) port = str(program_settings.read_setting("port")) webroot = str(program_settings.read_setting("webroot")) if not os.path.exists(webroot): # perhaps we should try something relative
def __init__(self): self.library = [] self.settings = Settings() self.settings.load_from_folder() self.populate()