Skip to content
This repository was archived by the owner on Jun 19, 2023. It is now read-only.

Commit b658450

Browse files
authored
Merge pull request #4 from MenuNote/rebrand-2
Change all instances of BarNotes to MenuNote
2 parents 8075376 + d1cf134 commit b658450

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

utils/filecheck.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,21 @@ def check_files():
77
loadingwindow = LoadingWindow()
88

99
files = [
10-
"https://raw.githubusercontent.com/bentettmar/barnotes/main/data/icon.png",
11-
"https://raw.githubusercontent.com/bentettmar/barnotes/main/data/note.txt"
10+
"https://raw.githubusercontent.com/MenuNote/menunote/main/data/icon.png",
11+
"https://raw.githubusercontent.com/MenuNote/menunote/main/data/note.txt"
1212
]
1313

1414
loadingwindow.update_text("Checking files...")
15-
if not os.path.exists(os.path.expanduser("~/Library/Application Support/BarNotes")):
16-
os.makedirs(os.path.expanduser("~/Library/Application Support/BarNotes"))
15+
if not os.path.exists(os.path.expanduser("~/Library/Application Support/MenuNote")):
16+
os.makedirs(os.path.expanduser("~/Library/Application Support/MenuNote"))
1717
loadingwindow.update_text("Creating directory...")
1818

1919
loadingwindow.update_text("Downloading files...")
2020
for file in files:
21-
if not os.path.exists(os.path.expanduser(f"~/Library/Application Support/BarNotes/{file.split('/')[-1]}")):
21+
if not os.path.exists(os.path.expanduser(f"~/Library/Application Support/MenuNote/{file.split('/')[-1]}")):
2222
loadingwindow.update_text(f"Downloading {file.split('/')[-1]}...")
2323
r = requests.get(file)
24-
with open(os.path.expanduser(f"~/Library/Application Support/BarNotes/{file.split('/')[-1]}"), "wb") as f:
24+
with open(os.path.expanduser(f"~/Library/Application Support/MenuNote/{file.split('/')[-1]}"), "wb") as f:
2525
f.write(r.content)
2626
loadingwindow.update_text(f"Downloaded {file.split('/')[-1]}...")
2727

0 commit comments

Comments
 (0)