OptionParser to ArgumentParser (#517)
This commit is contained in:
1 parent
d16628dc59
commit
0bbe9348a2
8 files changed
+244
-247
No files matched your search
@@ -55,7 +55,7 @@ class ComicArchive:
|
||||
|
||||
def extract(self, targetdir):
|
||||
if not os.path.isdir(targetdir):
|
||||
raise OSError('Target directory don\'t exist.')
|
||||
raise OSError('Target directory doesn\'t exist.')
|
||||
process = Popen('7z x -y -xr!__MACOSX -xr!.DS_Store -xr!thumbs.db -xr!Thumbs.db -o"' + targetdir + '" "' +
|
||||
self.filepath + '"', stdout=PIPE, stderr=STDOUT, stdin=PIPE, shell=True)
|
||||
process.communicate()
|
||||
|
||||
Reference in new issue
Block a user