From 6fc0398602c42a3d219ec92163c480c1833ab0c2 Mon Sep 17 00:00:00 2001 From: tassaron Date: Thu, 27 Jul 2017 18:43:02 -0400 Subject: quit if project doesn't exist when exporting from commandline --- src/command.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/command.py') 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() -- cgit v1.2.3