forked from urakubo/Dojo-standalone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
44 lines (33 loc) · 1.01 KB
/
main.py
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
#
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from PyQt5.QtWidgets import QMainWindow, QApplication, QWidget, QPushButton, QAction, QMessageBox
from PyQt5.QtGui import QIcon, QPixmap
from PyQt5.QtCore import pyqtSlot
import sys
import os
from os import path, pardir
main_dir = path.abspath(path.dirname(sys.argv[0])) # Dir of main
icon_dir = path.join(main_dir, "icons")
Plugins_dir = path.join(main_dir, "plugins")
sys.path.append(Plugins_dir)
sys.path.append(os.path.join(main_dir, "filesystem"))
sys.path.append(os.path.join(main_dir, "gui"))
# from filesystem import *
# from gui import *
# from _dojo import *
# print(' global:', globals())
from MainWindow import MainWindow
if os.name == 'nt':
try:
import win32api
except Exception:
print('No win32api module.')
# end of class MyApp
if __name__ == '__main__':
app = QApplication(sys.argv)
ex = MainWindow()
sys.exit(app.exec_())