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