# -*- coding:utf-8 -*- path_til = 'C:\\til\\' path_pension = 'C:\\Til-Pension\\' path_liam = 'C:\\liam2\\' import sys sys.path.append(path_liam) from src.simulation import Simulation path_model = 'console.yml' simulation = Simulation.from_yaml(path_model, input_dir = None, input_file = None, output_dir = path_til + 'output', output_file = None) simulation.run(False)
# -*- coding:utf-8 -*- from til.CONFIG import path_liam, path_model, path_pension import sys import os from til import __path__ as path_til sys.path.append(path_liam) sys.path.append(path_pension) from src.simulation import Simulation fichier = path_model + '\\til_base_model\console.yml' output_dir = os.path.join(path_til[0], 'output') simulation = Simulation.from_yaml( fichier, input_dir = None, input_file = None, output_dir = output_dir, output_file = None) simulation.run(False) # import cProfile # command = """simulation.run(False)""" # cProfile.runctx( command, globals(), locals(), filename="OpenGLContext.profile1")
# -*- coding:utf-8 -*- from CONFIG import path_liam, path_til, path_model import sys sys.path.append(path_liam) from src.simulation import Simulation fichier = path_model + 'console.yml' simulation = Simulation.from_yaml( fichier, input_dir = None, input_file = None, output_dir = path_til + 'output', output_file = None) simulation.run(False) # import cProfile # command = """simulation.run(False)""" # cProfile.runctx( command, globals(), locals(), filename="OpenGLContext.profile1")