* CD-Auswurf
* Benennung der Zieldateien korrigiert
This commit is contained in:
parent
20b0960c18
commit
eae1112815
2
main.py
2
main.py
@ -1,7 +1,7 @@
|
||||
from PyQt6.QtWidgets import QApplication
|
||||
from wmain import wMain
|
||||
|
||||
version = "20231012"
|
||||
version = "20231017"
|
||||
|
||||
if __name__ == "__main__":
|
||||
app = QApplication([])
|
||||
|
@ -5,6 +5,7 @@ import time
|
||||
import pydicom
|
||||
import shutil
|
||||
import random
|
||||
import ctypes
|
||||
from registry import Registry
|
||||
from PyQt6.QtWidgets import QDialog
|
||||
from PyQt6.QtWidgets import QLabel
|
||||
@ -196,8 +197,13 @@ class wArchive(QDialog):
|
||||
subFolder = self.randomString(4)
|
||||
os.mkdir(os.path.join(mainFolder, subFolder))
|
||||
|
||||
filename = 1
|
||||
for file in source:
|
||||
shutil.copy(file, os.path.join(mainFolder, subFolder))
|
||||
shutil.copy(file, os.path.join(mainFolder, subFolder, str(filename)))
|
||||
filename += 1
|
||||
|
||||
# Eject CD
|
||||
ctypes.windll.WINMM.mciSendStringW(u"set cdaudio door open", None, 0, None)
|
||||
|
||||
self.close()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user