Skip to content

Commit

Permalink
fix installer path
Browse files Browse the repository at this point in the history
  • Loading branch information
maxmindlin committed Jun 26, 2024
1 parent c275bfa commit 643ed31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
if not os.path.exists(SCOUT_DIR):
os.makedirs(SCOUT_DIR)
else:
shutil.rmtree(os.path.join(SCOUT_DIR, "scout-std"))
shutil.rmtree(os.path.join(SCOUT_DIR, "scout-lib"))


url = "https://api.github.com/repos/maxmindlin/scout-lang/releases/latest"
Expand All @@ -24,7 +24,7 @@
myzip = ZipFile(BytesIO(zip_resp.read()))

std_to_replace = f"scout-lang-{version[1::]}/"
std_file_start = std_to_replace + "scout-std/"
std_file_start = std_to_replace + "scout-lib/"
for file in myzip.infolist():
if std_file_start in file.filename:
replaced = file.filename.replace(std_to_replace, "")
Expand Down

0 comments on commit 643ed31

Please sign in to comment.