Browse code

Fixing bug

dthaluru authored on 2015/06/08 17:37:36
Showing 1 changed files
... ...
@@ -25,6 +25,10 @@ def main():
25 25
     
26 26
     
27 27
     (options,  args) = parser.parse_args()
28
+    cmdUtils=CommandUtils()
29
+    if not os.path.isdir(options.logPath):
30
+        cmdUtils.runCommandInShell("mkdir -p "+options.logPath)
31
+    
28 32
     logger=Logger.getLogger(options.logPath+"/Main")
29 33
     
30 34
     errorFlag=False
... ...
@@ -59,9 +63,6 @@ def main():
59 59
         logger.error("Found some errors. Please fix input options and re-run it.")
60 60
         return False
61 61
     
62
-    cmdUtils=CommandUtils()
63
-    if not os.path.isdir(options.logPath):
64
-        cmdUtils.runCommandInShell("mkdir -p "+options.logPath)
65 62
     
66 63
     if not os.path.isdir(options.rpmPath):
67 64
         cmdUtils.runCommandInShell("mkdir -p "+options.rpmPath+"/x86_64")