adonthell-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[adonthell-wastesedge-commits] remove_sdl1_2 eca730f 02/29: ADDED custom


From: Kai Sterker
Subject: [adonthell-wastesedge-commits] remove_sdl1_2 eca730f 02/29: ADDED custom site.py for Adonthell's embedded Python interpreter
Date: Mon, 25 Jul 2016 18:16:06 +0000 (UTC)

tag: remove_sdl1_2
commit eca730f00ffb651e9e05d140b5520a089055dc31
Author: Kai Sterker <address@hidden>
Commit: Kai Sterker <address@hidden>

    ADDED custom site.py for Adonthell's embedded Python interpreter
---
 win32/site.py |   24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/win32/site.py b/win32/site.py
new file mode 100644
index 0000000..17d6175
--- /dev/null
+++ b/win32/site.py
@@ -0,0 +1,24 @@
+"""Append module search paths for third-party packages to sys.path.
+
+****************************************************************
+* This module is automatically imported during initialization. *
+****************************************************************
+
+Minimum site.py for Python embedded in Adonthell.
+"""
+
+import sys
+
+def main():
+       pass
+
+main()
+
+def _test():
+    print "sys.path = ["
+    for dir in sys.path:
+        print "    %r," % (dir,)
+    print "]"
+
+if __name__ == '__main__':
+    _test()



reply via email to

[Prev in Thread] Current Thread [Next in Thread]