forked from root/threadr.lostcave.ddnss.de
changed moar variable names
parent
53ea4b6053
commit
acd98ffb3e
|
@ -8,7 +8,7 @@ Variable Grabbler - version 1.4
|
|||
import os, json, fnmatch
|
||||
|
||||
dir = os.path.dirname(os.path.abspath(__file__))
|
||||
fext = "*.php"
|
||||
file_name_pattern = "*.php"
|
||||
|
||||
print "Opening config file..."
|
||||
config = open("variable_grabbler.cfg","r")
|
||||
|
@ -17,7 +17,7 @@ config.close()
|
|||
|
||||
for x in parsed:
|
||||
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)
|
||||
|
||||
print "Working on file: "+file_path
|
||||
|
|
Loading…
Reference in New Issue