finish impl for quicksave

This commit is contained in:
Luna 2019-06-07 00:21:27 -03:00
parent ceb812565f
commit 0acf870f6c

View file

@ -1,6 +1,8 @@
import os
import shlex
import tempfile
import shutil
from pathlib import Path
from .utils import load_file_path
@ -40,9 +42,10 @@ class Interpreter:
except (IndexError, ValueError):
continue
# create our next glitched iteration
glitched_path = parent_folder / f'{name}_g{index + 1}.raw'
print(glitched_path)
# create our next glitched path
out_path = shutil.copyfile(
self.loaded_path, parent_folder / f'{name}_g{index + 1}.raw')
print('saved to', out_path)
def run(self, line: str):