Page History
Tip | ||
---|---|---|
| ||
|
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
def searchWarnCode(indir):
for root, dirs, filenames in os.walk(indir):
for f in filenames:
fileExt = os.path.splitext(f)[1].replace('.','')
if fileExt in extFilter:
fileRead( root + '\\' + f ,fileExt) |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
sf = open("testsrc.txt", "r")
context = sf.read() |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
workDir = os.getcwd()
logDir = workDir + '\\logs'
if not os.path.isdir(logDir):
os.mkdir(logDir) |