Menu

[r237]: / trunk / main.py  Maximize  Restore  History

Download this file

25 lines (19 with data), 582 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# -*- coding: utf-8 -*-
import sys, os, pluginsystem
from PyQt4 import QtCore, QtGui
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from QConsole import QConsole
#Create app
app = QtGui.QApplication(sys.argv)
###TODO: Check for read/write perms in user dir.
###TODO: Check for updates
#Add libs to path
for lib in os.listdir("libs" + os.path.sep):
if not lib == "kbhooklin" and not lib == "kbhookwin":
sys.path.append("libs" + os.path.sep + lib)
#Load plugins
pluginsystem.load_plugins()
pluginsystem.trigger_event("init")
window = QConsole()
sys.exit(app.exec_())