Image_dir bug
This commit is contained in:
parent
6a55ebed2c
commit
394fc3c068
1 changed files with 2 additions and 2 deletions
|
@ -73,9 +73,9 @@ class RareSettings(QWidget):
|
||||||
new_path = self.select_path.text()
|
new_path = self.select_path.text()
|
||||||
settings.setValue("img_dir", new_path)
|
settings.setValue("img_dir", new_path)
|
||||||
print(old_path, new_path)
|
print(old_path, new_path)
|
||||||
del settings
|
|
||||||
if old_path != new_path:
|
if old_path != new_path:
|
||||||
if not os.path.exists(new_path):
|
if not os.path.exists(new_path):
|
||||||
os.makedirs(new_path)
|
os.makedirs(new_path)
|
||||||
logger.info("Move Images")
|
logger.info("Move Images")
|
||||||
shutil.move(old_path, new_path)
|
for i in old_path:
|
||||||
|
shutil.move(os.path.join(old_path, i), new_path)
|
||||||
|
|
Loading…
Reference in a new issue