about summary refs log tree commit diff
path: root/other
diff options
context:
space:
mode:
authorPaweł Jastrzębski <pawelj@vulturis.eu>2014-01-22 16:47:55 +0100
committerPaweł Jastrzębski <pawelj@vulturis.eu>2014-01-22 16:47:55 +0100
commitaa96381eb5839590bf5d3856b4fcb42552858a73 (patch)
treead2aa8e7ad46f5427b66b19623723958b1ac1759 /other
parentLinux/OSX: Drag&Drop fix (diff)
downloadkcc-aa96381eb5839590bf5d3856b4fcb42552858a73.tar.gz
kcc-aa96381eb5839590bf5d3856b4fcb42552858a73.tar.bz2
kcc-aa96381eb5839590bf5d3856b4fcb42552858a73.zip
Added experimental Linux setup
Diffstat (limited to 'other')
-rw-r--r--other/LinuxInit.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/other/LinuxInit.py b/other/LinuxInit.py
new file mode 100644
index 0000000..7fa1150
--- /dev/null
+++ b/other/LinuxInit.py
@@ -0,0 +1,14 @@
+import os
+import sys
+import zipimport
+
+sys.frozen = True
+sys.path = sys.path[:4]
+sys.path.insert(0, '/usr/lib/kcc')
+sys.path.insert(0, '/usr/local/lib/kcc')
+sys.path.insert(0, os.path.join(DIR_NAME, '..', 'lib'))
+
+m = __import__("__main__")
+importer = zipimport.zipimporter(INITSCRIPT_ZIP_FILE_NAME)
+code = importer.get_code(m.__name__)
+exec(code, m.__dict__)