def parse_args(args): if args.transform_dir is None: args.transform_dir = project_tree()['transforms'] if args.transform in ['common', 'common.py']: print "Error: 'common' is a reserved module. Please name your transform something else." exit(-1) return args
def parse_args(args): if args.transform_dir is None: args.transform_dir = project_tree()['transforms'] if args.transform in ['common', 'common.py']: print "Error: 'common' is not a transform module. Cannot delete this module." exit(-1) return args
def parse_args(args): args = parser.parse_args(args) if args.outfile is None: args.outfile = path.join(project_tree()['transforms'], 'common', 'entities.py') if args.maltego_entities: args.namespace.extend(args.exclude_namespace) args.exclude_namespace = [] return args
def parse_args(args): if args.outfile is None: try: args.outfile = os.path.join(project_tree()['transforms'], 'common', 'entities.py') except ValueError: args.outfile = 'entities.py' if args.maltego_entities: args.namespace.extend(args.exclude_namespace) args.exclude_namespace = [] return args
def parse_args(args): args = parser.parse_args(args) if args.transform_dir is None: args.transform_dir = project_tree()['transforms'] return args
def parse_args(args): args = parser.parse_args(args) if args.transform_dir is None: args.transform_dir= project_tree()['transforms'] return args
def parse_args(args): args.ptree = project_tree(package = args.package) args.package = args.ptree['pkg_name'] # We specifically don't update 'args' with any of the info from ptree. This # way we always know exactly what information was specified by the user. return args
def parse_args(args): args.ptree = project_tree(package=args.package) args.package = args.ptree['pkg_name'] # We specifically don't update 'args' with any of the info from ptree. This # way we always know exactly what information was specified by the user. return args