예제 #1
0
파일: __main__.py 프로젝트: cloax/pytrace
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__')
예제 #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__')
예제 #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__')