Skip to content

Commit a4ccbdf

Browse files
committed
添加 sysModules 调试信息
1 parent d210dc9 commit a4ccbdf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Temp/debug/env/interpreterInfo.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
# Copyright (c) Microsoft Corporation. All rights reserved.
22
# Licensed under the MIT License.
33

4+
from ast import Str
45
import json
56
import os
67
import sys
78

89
obj = {}
910
obj["versionInfo"] = tuple(sys.version_info)
11+
obj["sysModules"] = {}
12+
for (k, v) in sys.modules.items():
13+
(obj["sysModules"])[str(k)] = str(v)
1014
obj["sysPrefix"] = sys.prefix
1115
obj["sysVersion"] = sys.version
1216
obj["sysPath"] = sys.path

0 commit comments

Comments
 (0)