From 205791fc52c87bb9462326336f953056fa358ab7 Mon Sep 17 00:00:00 2001 From: poikilos <7557867+poikilos@users.noreply.github.com> Date: Fri, 19 Feb 2016 15:43:03 -0500 Subject: [PATCH] fixing htaccess --- chunkymap-regen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chunkymap-regen.py b/chunkymap-regen.py index 7f10e03..0412b99 100644 --- a/chunkymap-regen.py +++ b/chunkymap-regen.py @@ -118,7 +118,7 @@ def get_dict_from_conf_file(path,assignment_operator="="): def deny_http_access(dir_path): htaccess_name = ".htaccess" htaccess_path = os.path.join(dir_path, htaccess_name) - outs = open(htaccess_path) + outs = open(htaccess_path, 'w') outs.write("IndexIgnore *"+"\n") outs.write(""+"\n") outs.write("order allow,deny"+"\n")