aboutsummaryrefslogtreecommitdiff
path: root/src/command.py
diff options
context:
space:
mode:
authortassaron2017-07-27 18:43:02 -0400
committertassaron2017-07-27 18:43:02 -0400
commit6fc0398602c42a3d219ec92163c480c1833ab0c2 (patch)
tree299a0009b683544b2fc41936c36a1f830eac5561 /src/command.py
parentde1324a6a75eb2a9f97d8a6b416077cfc73b2bc9 (diff)
quit if project doesn't exist when exporting from commandline
Diffstat (limited to 'src/command.py')
-rw-r--r--src/command.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/command.py b/src/command.py
index 74ca821..18f7408 100644
--- a/src/command.py
+++ b/src/command.py
@@ -64,7 +64,9 @@ class Command(QtCore.QObject):
)
if not projPath.endswith('.avp'):
projPath += '.avp'
- self.core.openProject(self, projPath)
+ success = self.core.openProject(self, projPath)
+ if not success:
+ quit(1)
self.core.selectedComponents = list(
reversed(self.core.selectedComponents))
self.core.componentListChanged()