diff --git a/libriis/classes/core.py b/libriis/classes/core.py index 0196f89..3edd08d 100644 --- a/libriis/classes/core.py +++ b/libriis/classes/core.py @@ -109,6 +109,7 @@ class Core(): # /_____/\____/\___/ /____/\___/\__/\__/_/_/ /_/\__, /____/ # /____/ def loadDocSettings(self): + print('loadDocSettings') self.docsettings = json.loads(open(os.path.join(self.cwd,'.config/docsettings.json')).read()) def recordDocSettings(self,docsettings): @@ -214,6 +215,7 @@ class Core(): self.changeCWD(cwd) self.loadDocSettings() self.summary = json.loads(open(os.path.join(cwd,'.config/summary.json')).read()) + print('summary', summary) # TODO: try python-pygit2 arch package # self.repository = git.Repo.init(cwd) # TODO: set git config user.name & user.email @@ -239,6 +241,7 @@ class Core(): # \___/_/ /_/\__,_/_/ /_/\__, /\___/\____/ |__/|__/_____/ # /____/ def changeCWD(self, cwd): + print('changeCWD :: cwd', cwd) if not cwd == self.cwd: self.cwd = cwd self.server.reload() @@ -248,7 +251,7 @@ class Core(): if not self.tempcwd: self._mw.setWindowTitle("Libriis – "+self.cwd) head, tail = os.path.split(self.cwd) - print('tail', projectname) + print('changeCWD :: tail', tail) self.projectname = tail self._mw.designstack.refresh() self._mw.contentstack.refresh() diff --git a/libriis/classes/mainwindow.py b/libriis/classes/mainwindow.py index 039e442..72c2e6e 100644 --- a/libriis/classes/mainwindow.py +++ b/libriis/classes/mainwindow.py @@ -165,7 +165,7 @@ class MainWindow(QMainWindow): else: print("folder doesn't exists") except Exception as e: - print('Exception', e) + print('openprojectdialogue :: !!Exception!! :', e) pass def newprojectdialogue(self): @@ -180,6 +180,9 @@ class MainWindow(QMainWindow): # TODO: no file type try: head, tail = os.path.split(projectname) + print('newprojectdialogue :: projectname', projectname) + print("newprojectdialogue :: head",head) + print("newprojectdialogue :: tail", tail) self.core.dialog_path = head if not os.path.isdir(projectname): self.core.initnewproject(projectname) @@ -187,7 +190,7 @@ class MainWindow(QMainWindow): print("folder already exists") # TODO: check if is libriis folder except Exception as e: - print('Exception', e) + print('newprojectdialogue :: !!Exception!!', e) pass def saveprojectdialogue(self, quit=False):