Browse Source

fix syntax errors pasted from web

master
poikilos 9 years ago
committed by Jacob Gustafson
parent
commit
e19f1a778c
  1. 4
      chunkymap-regen.py

4
chunkymap-regen.py

@ -223,7 +223,7 @@ if os.path.isfile(mtmn_path) and os.path.isfile(colors_path):
htaccess_path = os.path.join(chunkymap_data_path,".htaccess") htaccess_path = os.path.join(chunkymap_data_path,".htaccess")
if not os.path.isdir(chunkymap_players_path): if not os.path.isdir(chunkymap_players_path):
os.mkdirs(chunkymap_players_path) os.makedirs(chunkymap_players_path)
if not os.path.isfile(htaccess_path): if not os.path.isfile(htaccess_path):
deny_http_access(chunkymap_data_path) deny_http_access(chunkymap_data_path)
htaccess_path = os.path.join(chunkymap_players_path,".htaccess") htaccess_path = os.path.join(chunkymap_players_path,".htaccess")
@ -231,7 +231,7 @@ if os.path.isfile(mtmn_path) and os.path.isfile(colors_path):
deny_http_access(chunkymap_players_path) deny_http_access(chunkymap_players_path)
if not os.path.isdir(chunkymap_players_path): if not os.path.isdir(chunkymap_players_path):
os.mkdirs(chunkymap_players_path) os.makedirs(chunkymap_players_path)
players_path = os.path.join(world_path, "players") players_path = os.path.join(world_path, "players")
for dirname, dirnames, filenames in os.walk(players_path): for dirname, dirnames, filenames in os.walk(players_path):
for filename in filenames: for filename in filenames:

Loading…
Cancel
Save