mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2025-01-09 17:53:50 +00:00
Tweak findterm files
This commit is contained in:
parent
1c935b15d7
commit
12f08d821c
3 changed files with 25 additions and 6 deletions
|
@ -10,7 +10,7 @@ def processFile(f,t):
|
|||
|
||||
return lines_found
|
||||
|
||||
term = raw_input('>')
|
||||
term = raw_input('> ')
|
||||
for x in glob.glob('../../../toontown/*/*.py'):
|
||||
r = processFile(x,term)
|
||||
if r:
|
||||
|
|
19
dev/tools/findterm/findtermAI.py
Normal file
19
dev/tools/findterm/findtermAI.py
Normal file
|
@ -0,0 +1,19 @@
|
|||
import glob
|
||||
|
||||
def processFile(f,t):
|
||||
data = open(f,'rb').read()
|
||||
lines = data.replace('\r\n','\n').split('\n')
|
||||
lines_found = []
|
||||
for i,x in enumerate(lines):
|
||||
if t in x:
|
||||
lines_found.append(i+1)
|
||||
|
||||
return lines_found
|
||||
|
||||
term = raw_input('> ')
|
||||
for x in glob.glob('../../../toontown/*/*AI.py'):
|
||||
r = processFile(x,term)
|
||||
if r:
|
||||
print x,r
|
||||
|
||||
raw_input('*****')
|
|
@ -10,7 +10,7 @@ def processFile(f,t):
|
|||
|
||||
return lines_found
|
||||
|
||||
term = raw_input('>')
|
||||
term = raw_input('> ')
|
||||
for x in glob.glob('../../../otp/*/*.py'):
|
||||
r = processFile(x,term)
|
||||
if r:
|
||||
|
|
Loading…
Reference in a new issue