eric6/Utilities/GetSysPath.py

changeset 6942
2602857055c5
parent 6645
ad476851d7e0
child 7360
9190402e4505
diff -r f99d60d6b59b -r 2602857055c5 eric6/Utilities/GetSysPath.py
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/eric6/Utilities/GetSysPath.py	Sun Apr 14 15:09:21 2019 +0200
@@ -0,0 +1,22 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2011 - 2019 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+"""
+Module to get sys.path of an external interpreter.
+"""
+
+from __future__ import print_function
+
+import sys
+import json
+
+if __name__ == "__main__":
+    # print sys.path to stdout
+    print(json.dumps(sys.path))
+    
+    sys.exit(0)
+    
+#
+# eflag: noqa = M701, M801

eric ide

mercurial