mirror of
https://github.com/NinjaCheetah/NUSGet.git
synced 2025-04-26 07:31:00 -04:00
Fix use of relative paths so that the macOS .app works
This commit is contained in:
parent
cc85811a93
commit
e56f3df1cc
10
NUSD-Py.py
10
NUSD-Py.py
@ -333,9 +333,13 @@ if __name__ == "__main__":
|
|||||||
database_file = open(os.path.join(os.path.dirname(__file__), "data/wii-database.json"))
|
database_file = open(os.path.join(os.path.dirname(__file__), "data/wii-database.json"))
|
||||||
wii_database = json.load(database_file)
|
wii_database = json.load(database_file)
|
||||||
|
|
||||||
out_folder = pathlib.Path("titles")
|
try:
|
||||||
if not out_folder.is_dir():
|
# noinspection PyUnresolvedReferences
|
||||||
out_folder.mkdir()
|
out_folder = os.path.join(__compiled__.containing_dir, "titles")
|
||||||
|
except NameError:
|
||||||
|
out_folder = os.path.join(os.path.dirname(sys.argv[0]), "titles")
|
||||||
|
if not os.path.isdir(out_folder):
|
||||||
|
os.mkdir(out_folder)
|
||||||
|
|
||||||
window = MainWindow()
|
window = MainWindow()
|
||||||
window.setWindowTitle("NUSD-Py")
|
window.setWindowTitle("NUSD-Py")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user