From acd98ffb3ee5e14f077dce0962f43a30bbc0441b Mon Sep 17 00:00:00 2001 From: BodgeMaster <> Date: Sun, 23 Feb 2020 23:45:08 +0100 Subject: [PATCH] changed moar variable names --- variable_grabbler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/variable_grabbler.py b/variable_grabbler.py index df1e402..bf7d78a 100644 --- a/variable_grabbler.py +++ b/variable_grabbler.py @@ -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