finish impl for quicksave
This commit is contained in:
parent
ceb812565f
commit
0acf870f6c
1 changed files with 6 additions and 3 deletions
|
@ -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):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue