CxFreeze/CxfreezeFindPath.py

changeset 47
986f27beaad4
child 66
8b8127353236
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CxFreeze/CxfreezeFindPath.py	Sun Jul 07 20:40:48 2013 +0200
@@ -0,0 +1,17 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2013 - 2013 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+"""
+Script to find the cxfreeze directory from running Python interpreter.
+"""
+
+import os
+import sys
+
+for sysPath in sys.path:
+    modpath = os.path.join(sysPath, "cx_Freeze")
+    if os.path.exists(modpath):
+        print(modpath)
+        break

eric ide

mercurial