Beispiel #1
0
def main():
    pop_self_from_argv()
    if len(sys.argv) == 0:
        reader_main()
    else:
        with trace_context():
            runpy.run_path(sys.argv[0], run_name='__main__')
Beispiel #2
0
def main():
    pop_self_from_argv()
    if len(sys.argv) == 0:
        reader_main()
    else:
        sys.path.append(os.getcwd())
        with trace_context():
            runpy.run_path(sys.argv[0], run_name='__main__')
Beispiel #3
0
def main():
    pop_self_from_argv()
    if len(sys.argv) == 0:
        reader_main()
    else:
        sys.path.append(os.getcwd())
        with trace_context():
            runpy.run_path(sys.argv[0], run_name='__main__')