1 import lit.util 2 import os 3 import sys 4 5 main_config = sys.argv[1] 6 main_config = os.path.realpath(main_config) 7 main_config = os.path.normcase(main_config) 8 9 config_map = {main_config : sys.argv[2]} 10 builtin_parameters = {'config_map' : config_map} 11 12 if __name__=='__main__': 13 from lit.main import main 14 main_config_dir = os.path.dirname(main_config) 15 sys.argv = [sys.argv[0]] + sys.argv[3:] + [main_config_dir] 16 main(builtin_parameters) 17