Skip to content

Commit

Permalink
weird behaviour with env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
agahkarakuzu committed Sep 10, 2024
1 parent 4e706e3 commit c24e695
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions myst_libre/tools/myst_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,7 @@ def build(self):
str: Command output or None if failed.
"""
os.chdir(self.build_dir)
env = os.environ.copy()
self.env_vars.update(env)
self.cprint(f"--> Self env vars {self.env_vars}", "green")
return self.run_command('build', '--execute', '--html',env_vars=self.env_vars)

def build_site(self):
Expand All @@ -151,8 +150,6 @@ def build_site(self):
str: Command output or None if failed.
"""
os.chdir(self.build_dir)
env = os.environ.copy()
self.env_vars.update(env)
return self.run_command('build', '--site',env_vars=self.env_vars)

def convert(self, input_file, output_file):
Expand Down

0 comments on commit c24e695

Please sign in to comment.