execute loop

master
JoYo 2016-07-18 00:16:41 -04:00
parent 3422602203
commit d93929d8b5
1 changed files with 5 additions and 6 deletions

11
run.py
View File

@ -33,9 +33,9 @@ class Sins():
parsed = self.parent, self.seed, self.run_dir
self.logger.info('parsed\n {}'.format((parsed)))
paths = (self.seed)
while True:
self.execute(self.parent, self.seed, self.run_dir)
paths = sorted(os.listdir(self.run_dir))
for path in paths:
scrap_path = os.path.join(self.run_dir, path)
if os.path.isfile(scrap_path):
@ -44,6 +44,7 @@ class Sins():
scrap_path,
self.run_dir
)
paths = sorted(os.listdir(self.run_dir))
def scrap_recent(self, run_dir):
scraps = sorted(os.listdir(run_dir))
@ -60,12 +61,10 @@ class Sins():
def hex_dumps(scrap_dir):
scrap_dir = os.path.abspath(scrap_dir)
dump_dir = os.path.join(scrap_dir, 'hexdumps')
dump_dir = os.path.join(scrap_dir, 'hex')
try:
if not os.path.isdir(dump_dir):
os.mkdir(dump_dir)
except:
pass
scraps = os.listdir(scrap_dir)