rmdir can be easily done without calling the shell.

This commit is contained in:
Pavel Machek
2024-05-10 22:07:28 +02:00
parent 48a4b8db2a
commit 8d74a7da06

View File

@@ -418,8 +418,8 @@ class Mpegize:
print("mpegize command base-dir destination-movie fps dng|grw") print("mpegize command base-dir destination-movie fps dng|grw")
def cleanup(m): def cleanup(m):
os.system("rmdir %s/sm/" % m.base) os.rmdir(m.base+"/sm/")
os.system("rmdir %s/" % m.base) os.rmdir(m.base)
print("Message: Rec") print("Message: Rec")
sys.stdout.flush() sys.stdout.flush()