diff --git a/wordfreq_builder/wordfreq_builder/ninja.py b/wordfreq_builder/wordfreq_builder/ninja.py index 111c0ab..0dbcd82 100644 --- a/wordfreq_builder/wordfreq_builder/ninja.py +++ b/wordfreq_builder/wordfreq_builder/ninja.py @@ -240,7 +240,7 @@ def reddit_base_filename(path): """ Get the base name of a Reddit input file, without its path or extension. """ - return path.name[:-4] + return path.stem def reddit_deps(dirname_in, languages):