Skip to content

Commit c24e695

Browse files
committed
weird behaviour with env vars
1 parent 4e706e3 commit c24e695

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

myst_libre/tools/myst_client.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,7 @@ def build(self):
139139
str: Command output or None if failed.
140140
"""
141141
os.chdir(self.build_dir)
142-
env = os.environ.copy()
143-
self.env_vars.update(env)
142+
self.cprint(f"--> Self env vars {self.env_vars}", "green")
144143
return self.run_command('build', '--execute', '--html',env_vars=self.env_vars)
145144

146145
def build_site(self):
@@ -151,8 +150,6 @@ def build_site(self):
151150
str: Command output or None if failed.
152151
"""
153152
os.chdir(self.build_dir)
154-
env = os.environ.copy()
155-
self.env_vars.update(env)
156153
return self.run_command('build', '--site',env_vars=self.env_vars)
157154

158155
def convert(self, input_file, output_file):

0 commit comments

Comments
 (0)