move usage function
This commit is contained in:
parent
45fc27f1a8
commit
2253d24ad2
6
ppp.py
6
ppp.py
|
@ -5,6 +5,9 @@ import re
|
|||
err = False
|
||||
paths = []
|
||||
|
||||
def print_usage():
|
||||
print("\nusage: python ppp.py ROOT TEMPLATES [...]")
|
||||
|
||||
# check arguments
|
||||
argc = len(sys.argv)
|
||||
if argc < 3:
|
||||
|
@ -20,9 +23,6 @@ src_dir = sep.join(sys.argv[2].split(sep)[:-1])
|
|||
# regex patterns
|
||||
p_var = re.compile(r'(#.+?\.css)')
|
||||
|
||||
def print_usage():
|
||||
print("\nusage: python ppp.py ROOT TEMPLATES [...]")
|
||||
|
||||
def preprocess_file(path):
|
||||
lines=0
|
||||
|
||||
|
|
Loading…
Reference in New Issue