Browse Source

rmdir can be easily done without calling the shell.

Pavel Machek 7 months ago
parent
commit
8d74a7da06
1 changed files with 2 additions and 2 deletions
  1. 2 2
      mpegize.py

+ 2 - 2
mpegize.py

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