浏览代码

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,
     }