Browse Source

execute loop

master
JoYo 5 years ago
parent
commit
d93929d8b5
  1. 11
      run.py

11
run.py

@ -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)

Loading…
Cancel
Save