1import lit.util 2import os 3import sys 4 5main_config = sys.argv[1] 6main_config = os.path.realpath(main_config) 7main_config = os.path.normcase(main_config) 8 9config_map = {main_config : sys.argv[2]} 10builtin_parameters = {'config_map' : config_map} 11 12if __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