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

Removed shell flag in subprocess call #2045

Merged
merged 1 commit into from
Sep 20, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def process(self, instance):
# run subprocess
self.log.debug("Executing: {}".format(" ".join(subprocess_args)))
openpype.api.run_subprocess(
subprocess_args, shell=True, logger=self.log
subprocess_args, logger=self.log
)

# remove thumbnail key from origin repre
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def process(self, instance):
joined_args = " ".join(ffmpeg_args)
self.log.info(f"Processing: {joined_args}")
openpype.api.run_subprocess(
ffmpeg_args, shell=True, logger=self.log
ffmpeg_args, logger=self.log
)

repre = {
Expand Down
3 changes: 2 additions & 1 deletion openpype/plugins/publish/extract_jpeg_exr.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,14 @@ def process(self, instance):
self.log.debug("{}".format(subprocess_command))
try: # temporary until oiiotool is supported cross platform
run_subprocess(
subprocess_args, shell=True, logger=self.log
subprocess_args, logger=self.log
)
except RuntimeError as exp:
if "Compression" in str(exp):
self.log.debug("Unsupported compression on input files. " +
"Skipping!!!")
return
self.log.warning("Conversion crashed", exc_info=True)
raise

if "representations" not in instance.data:
Expand Down
2 changes: 1 addition & 1 deletion openpype/plugins/publish/extract_review.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def main_process(self, instance):
)

openpype.api.run_subprocess(
subprocess_args, shell=True, logger=self.log
subprocess_args, logger=self.log
)

# delete files added to fill gaps
Expand Down
4 changes: 2 additions & 2 deletions openpype/plugins/publish/extract_review_slate.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def process(self, instance):
"Slate Executing: {}".format(" ".join(slate_subprocess_args))
)
openpype.api.run_subprocess(
slate_subprocess_args, shell=True, logger=self.log
slate_subprocess_args, logger=self.log
)

# create ffmpeg concat text file path
Expand Down Expand Up @@ -244,7 +244,7 @@ def process(self, instance):
"Executing concat: {}".format(" ".join(concat_args))
)
openpype.api.run_subprocess(
concat_args, shell=True, logger=self.log
concat_args, logger=self.log
)

self.log.debug("__ repre[tags]: {}".format(repre["tags"]))
Expand Down