def ShouldExpandCommandFile(arg): """ We may be given files with commandline arguments. Read in the arguments so that they can be handled as usual. """ if arg.startswith('@'): possible_file = pathtools.normalize(arg[1:]) return pathtools.isfile(possible_file) else: return False