Skip to content

Commit

Permalink
Fix determination of wasi-sdk version when built as a subproject.
Browse files Browse the repository at this point in the history
  • Loading branch information
whitequark committed Jul 13, 2024
1 parent 297b6d0 commit 1cb5421
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion version.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
GIT_REF_LEN = 12


def exec(command, cwd=None):
def exec(command, cwd=os.path.dirname(sys.argv[0])):
result = subprocess.run(command, stdout=subprocess.PIPE,
universal_newlines=True, check=True, cwd=cwd)
return result.stdout.strip()
Expand Down

0 comments on commit 1cb5421

Please sign in to comment.