8311:4e8b98454baa | 8312:800c432b34c8 |
---|---|
1 # -*- coding: utf-8 -*- | |
2 | |
3 # Copyright (c) 2011 - 2021 Detlev Offenbach <detlev@die-offenbachs.de> | |
4 # | |
5 | |
6 """ | |
7 Module to get sys.path of an external interpreter. | |
8 """ | |
9 | |
10 import sys | |
11 import json | |
12 | |
13 if __name__ == "__main__": | |
14 # print sys.path to stdout | |
15 print(json.dumps(sys.path)) | |
16 | |
17 sys.exit(0) | |
18 | |
19 # | |
20 # eflag: noqa = M701, M801 |