Skip to content

Commit

Permalink
changed default location for database file
Browse files Browse the repository at this point in the history
  • Loading branch information
Omer Faruk IRMAK committed May 19, 2016
1 parent 702ccce commit 1978340
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions qt_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,10 @@ def createPossibleSchedules(self,checked,crnList=[],timeSlots=[0 for x in range(
continue
self.createPossibleSchedules(checked,crnList+[CRN],timeSlots,index+1)

if platform.system() == 'Darwin' and hasattr(sys, 'frozen'):
os.chdir(os.path.abspath(os.path.dirname(sys.executable)))
os.chdir(os.path.expanduser("~"))
if not os.path.exists('.programci'):
os.makedirs('.programci')
os.chdir('.programci')

count=0
rand_col=[]
Expand Down
2 changes: 1 addition & 1 deletion ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def __init__(self):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.setEnabled(True)
MainWindow.resize(958, 751)
MainWindow.setFixedSize(958, 751)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
Expand Down

0 comments on commit 1978340

Please sign in to comment.