Exemple #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__')
Exemple #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__')
Exemple #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__')