-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.py
More file actions
25 lines (20 loc) · 714 Bytes
/
Main.py
File metadata and controls
25 lines (20 loc) · 714 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
from FrontEnd.MainWindow import MainWindow
import getpass
import os
from FrontEnd.Asking import Asking
from PyQt4 import QtGui,QtCore
import subprocess
if __name__ == '__main__':
user=getpass.getuser()
if not (os.path.isfile(os.path.join('profile','configuration'))):
app = QtGui.QApplication(['Findr'])
app.setWindowIcon(QtGui.QIcon(os.path.join('resources','Findr.png')))
s=Asking(app)
s.main_window.show()
d = open('requirements', 'r')
r = d.read().splitlines()
# for i in r:
# os.system('python -m pip install ' + str(i))
app.exec_()
if (os.path.isfile(os.path.join('profile','configuration'))):
w=MainWindow()