ignore hidden files during compilation

master
nathaniel smith 2017-10-03 17:01:37 -07:00
parent a6b8a15b1e
commit 22e6d5735f
1 changed files with 2 additions and 0 deletions

View File

@ -49,6 +49,8 @@ def compile_wiki(source_path: str, dest_path: str) -> None:
os.mkdir(os.path.join(dest_root, directory))
for source_filename in files:
if source_filename.startswith('.'):
continue
source_file_path = os.path.join(source_root, source_filename)
output = compile_source_file(
source_file_path,