From 825c6c4eb2b534303211ff05a06a90242f6044de Mon Sep 17 00:00:00 2001 From: Adnan Ali Date: Mon, 20 Feb 2012 11:07:15 +0000 Subject: lorry missing or relative path makes it fail lorry was failing to cope with missing or relative working directory. After fix if no directory is given it will show a message that no working directory in path and will use "workd" directory. It will also create the directory if it isn't present. --- lorry | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lorry') diff --git a/lorry b/lorry index 52ebe8c..2927be3 100755 --- a/lorry +++ b/lorry @@ -67,6 +67,13 @@ class Lorry(cliapp.Application): def process_args(self, args): status = 0 + + if self.settings['working-area'] == '' : + print 'No working area defined going to use "workd" directory' + self.settings['working-area'] = 'workd' + if not os.path.exists(self.settings['working-area']): + os.makedirs(self.settings['working-area']) + for arg in args: self.progress('Processing spec file %s' % arg) with open(arg) as f: -- cgit v1.2.1