changed moar variable names

master
BodgeMaster 2020-02-23 23:45:08 +01:00
parent 53ea4b6053
commit acd98ffb3e
1 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ Variable Grabbler - version 1.4
import os, json, fnmatch import os, json, fnmatch
dir = os.path.dirname(os.path.abspath(__file__)) dir = os.path.dirname(os.path.abspath(__file__))
fext = "*.php" file_name_pattern = "*.php"
print "Opening config file..." print "Opening config file..."
config = open("variable_grabbler.cfg","r") config = open("variable_grabbler.cfg","r")
@ -17,7 +17,7 @@ config.close()
for x in parsed: for x in parsed:
for path, dirs, files in os.walk(dir): for path, dirs, files in os.walk(dir):
for fname in fnmatch.filter(files, fext): for fname in fnmatch.filter(files, file_name_pattern):
file_path = os.path.join(path, fname) file_path = os.path.join(path, fname)
print "Working on file: "+file_path print "Working on file: "+file_path