1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2026-04-21 06:16:43 +00:00

make sure all presets start with a blank line, looks nicer (tools/checkpresets.py); updated nes

This commit is contained in:
Steven Hugg
2018-08-13 18:17:36 -04:00
parent 690b3ac013
commit 4a82d341bc
111 changed files with 248 additions and 247 deletions
+16
View File
@@ -0,0 +1,16 @@
import os,sys,codecs
for root, dirs, files in os.walk("./presets"):
for fn in files:
path = root + '/' + fn
if fn[-1] == '~':
continue
try:
with open(path,'r') as f:
data = f.read()
if data[0] != '\n':
print(path,'no initial newline')
except:
print(path,sys.exc_info()[0])