def checkArgument(argname, isFile=False, isDir=False, createDir=False):
    if (not argname):
        return False
    else:
        if (isFile and (not os.path.isfile(argname))):
            return False
        if isDir:
            if (not os.path.isdir(argname)):
                if createDir:
                    print(('Creating directory %s' % argname))
                    os.makedirs(argname)
                else:
                    return False
    return True
def checkArgument(argname, isFile=False, isDir=False, createDir=False):
    if (not argname):
        return False
    else:
        if (isFile and (not os.path.isfile(argname))):
            return False
        if isDir:
            if (not os.path.isdir(argname)):
                if createDir:
                    print(('Creating directory %s' % argname))
                    os.makedirs(argname)
                else:
                    return False
    return True