def find_scrivener_project_contents(hot_files, scrivener_project): for path, dirs, files in os.walk( os.path.join( # @UnusedVariable hot_files.project_dir, scrivener_project)): rpath = relpath(path, hot_files.project_dir) for filename in files: yield os.path.join(rpath, filename)
def __drop_prefix(self, prefix, filepath): return relpath(filepath, prefix)
def find_scrivener_project_contents(hot_files, scrivener_project): for path, dirs, files in os.walk(os.path.join(hot_files.project_dir, scrivener_project)): # @UnusedVariable rpath = relpath(path, hot_files.project_dir) for filename in files: yield os.path.join(rpath, filename)