execute loop
parent
3422602203
commit
d93929d8b5
11
run.py
11
run.py
|
@ -33,9 +33,9 @@ class Sins():
|
||||||
parsed = self.parent, self.seed, self.run_dir
|
parsed = self.parent, self.seed, self.run_dir
|
||||||
self.logger.info('parsed\n {}'.format((parsed)))
|
self.logger.info('parsed\n {}'.format((parsed)))
|
||||||
|
|
||||||
|
paths = (self.seed)
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
self.execute(self.parent, self.seed, self.run_dir)
|
|
||||||
paths = sorted(os.listdir(self.run_dir))
|
|
||||||
for path in paths:
|
for path in paths:
|
||||||
scrap_path = os.path.join(self.run_dir, path)
|
scrap_path = os.path.join(self.run_dir, path)
|
||||||
if os.path.isfile(scrap_path):
|
if os.path.isfile(scrap_path):
|
||||||
|
@ -44,6 +44,7 @@ class Sins():
|
||||||
scrap_path,
|
scrap_path,
|
||||||
self.run_dir
|
self.run_dir
|
||||||
)
|
)
|
||||||
|
paths = sorted(os.listdir(self.run_dir))
|
||||||
|
|
||||||
def scrap_recent(self, run_dir):
|
def scrap_recent(self, run_dir):
|
||||||
scraps = sorted(os.listdir(run_dir))
|
scraps = sorted(os.listdir(run_dir))
|
||||||
|
@ -60,12 +61,10 @@ class Sins():
|
||||||
|
|
||||||
def hex_dumps(scrap_dir):
|
def hex_dumps(scrap_dir):
|
||||||
scrap_dir = os.path.abspath(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)
|
os.mkdir(dump_dir)
|
||||||
except:
|
|
||||||
pass
|
|
||||||
|
|
||||||
scraps = os.listdir(scrap_dir)
|
scraps = os.listdir(scrap_dir)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue