Skip to content

Commit

Permalink
fix release/2.0 broken environment .bat in Windows with relative paths
Browse files Browse the repository at this point in the history
  • Loading branch information
memsharded committed Apr 3, 2023
1 parent 5b242f7 commit 32bec76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conan/tools/env/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ def save_bat(self, file_location, generate_deactivate=True):
{deactivate}
""").format(deactivate=deactivate if generate_deactivate else "")
result = [capture]
location = os.path.dirname(file_location)
location = os.path.abspath(os.path.dirname(file_location))
for varname, varvalues in self._values.items():
value = varvalues.get_str("%{name}%", subsystem=self._subsystem, pathsep=self._pathsep)
# To make the script relocatable
Expand Down

0 comments on commit 32bec76

Please sign in to comment.