Merged working create_destination into dev

This commit is contained in:
Berkona 2013-03-01 17:29:46 -05:00
commit 24b24e140e

View file

@ -1,6 +1,6 @@
import logging
import logging.config
import os.path
import os
import sys
@ -23,6 +23,16 @@ def create_destination(outputDestination):
sys.exit(-1)
def create_destination(outputDestination):
if not os.path.exists(outputDestination):
try:
Logger.info("CREATE DESTINATION: Creating destination folder: %s", outputDestination)
os.makedirs(outputDestination)
except Exception, e:
Logger.error("CREATE DESTINATION: Not possible to create destination folder: %s. Exiting", e)
sys.exit(-1)
def parse_other(args):
return os.path.normpath(sys.argv[1]), '', '', ''