Skip to content

Commit

Permalink
Merge pull request #149 from fizyk/pass_envs
Browse files Browse the repository at this point in the history
Pass current envvars into Popen when triggering diagram generation
  • Loading branch information
mgaitan authored Sep 5, 2024
2 parents 262a58d + 64feedf commit 8cbe93b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions sphinxcontrib/mermaid.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,7 @@ def render_mm(self, code, options, _fmt, prefix="mermaid"):
mm_args.extend("--configFile", self.builder.config.mermaid_sequence_config)

try:
p = Popen(
mm_args, shell=mermaid_cmd_shell, stdout=PIPE, stdin=PIPE, stderr=PIPE
)
p = Popen(mm_args, shell=mermaid_cmd_shell, stdout=PIPE, stdin=PIPE, stderr=PIPE, env=os.environ)
except FileNotFoundError:
logger.warning(
"command %r cannot be run (needed for mermaid "
Expand Down

0 comments on commit 8cbe93b

Please sign in to comment.