1
0
mirror of https://github.com/ciromattia/kcc synced 2026-06-30 18:15:24 +00:00

Added experimental Linux setup

This commit is contained in:
Paweł Jastrzębski
2014-01-22 16:47:55 +01:00
parent a2b9b5aa8b
commit aa96381eb5
5 changed files with 65 additions and 40 deletions
+14
View File
@@ -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__)