Skip to content
This repository has been archived by the owner on Nov 25, 2024. It is now read-only.

Commit

Permalink
Merge pull request #25 from haasad/change/extraction-function-subclas…
Browse files Browse the repository at this point in the history
…sing

Small adaption of the extract function for the activity-browser
  • Loading branch information
haasad authored Feb 24, 2022
2 parents 6128fd4 + 416fea2 commit 9b67b4b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions eidl/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,11 @@ def download(self):
with open(self.out_path, 'wb') as out_file:
out_file.write(file_content)

def extract(self, target_dir):
def extract(self, target_dir, **kwargs):
extract_cmd = ['py7zr', 'x', self.out_path, target_dir]
try:
self.extraction_process = subprocess.Popen(extract_cmd)
self.extraction_process.wait()
self.extraction_process = subprocess.Popen(extract_cmd, **kwargs)
return self.extraction_process.wait()
except FileNotFoundError as e:
if "PYCHARM_HOSTED" in os.environ:
print('It appears the EcoInventDownLoader is run from PyCharm. ' +
Expand Down

0 comments on commit 9b67b4b

Please sign in to comment.