lwzm
9/26/2019 - 1:47 AM

launcher.py

import importlib
import sys

name = sys.argv[1]
if name.endswith(".py"):
    name = name[:-3].replace("/", ".")

if __name__ == '__main__':
    m = importlib.import_module(name)
    print(m.main())