예제 #1
0
if not options.acoFiles:
    options.acoFiles = []
else:
    options.acoFiles = options.acoFiles.split(',')

#if (len(args) >= 1):
if not args:
    nTerror('no arguments found')
    sys.exit(1)

if not os.path.exists(args[0]):
    nTerror('directory "%s" not found\n', args[0])
    sys.exit(1)

if Project.exists(args[0]) and not options.overwrite:
    nTerror(
        'Cing project "%s" already exists; Use -o or --overwrite to overwrite\n',
        args[0])
    sys.exit(1)

#=====================================================================================
# Done checking arguments, lets have some action
#=====================================================================================
nTmessage(header)

project = Project.open(args[0], 'new')
if not project:
    nTwarning("No project generated. Aborting further execution.")
    sys.exit(0)
#end if