소스 검색

Also print path of __main__ module

Thomas Kluyver 4 년 전
부모
커밋
e2e5475d10
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      nsist/tests/console_example/sample_printer/__init__.py

+ 1 - 0
nsist/tests/console_example/sample_printer/__init__.py

@@ -11,6 +11,7 @@ def main():
         'py_executable': sys.executable,
         'py_version': sys.version,
         'sys_path': sys.path,
+        'main_file': sys.modules['__main__'].__file__,
         'data_file_path': data_file,
         'data_file_content': data_from_file,
     }