Skip to content

Commit a31eeaf

Browse files
author
shbhmexe
committed
fix: restore download target + normalize ninja copy paths
Signed-off-by: shbhmexe <shubhushukla586@gmail.com>
1 parent 4acce6f commit a31eeaf

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

meson_scripts/init.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ def _extract_member(self, member, targetpath, pwd):
289289

290290
if not os.path.exists(filepath) and not os.path.exists(alt_filepath):
291291
try:
292-
urllib.request.urlretrieve(url, filepath)
292+
urllib.request.urlretrieve(url, filename)
293293
except Exception as e:
294294
print(e)
295295
print("Download of module " + name + " failed.")

preconfigure.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ def build_ninja():
7777
["python3", "configure.py", "--bootstrap"], cwd=ninjapath, env=env
7878
)
7979
shutil.copy(
80-
ninjapath + os.path.sep + "ninja", sys.path[0] + os.path.sep + "ninja"
80+
os.path.join(ninjapath, "ninja"),
81+
os.path.join(sys.path[0], "ninja"),
8182
)
8283

8384

0 commit comments

Comments
 (0)