mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 12:11:33 -06:00
Launcher: handle apworld installation (#3472)
This commit is contained in:
@@ -10,7 +10,11 @@ from typing import Dict, List, TypedDict, Optional
|
||||
from Utils import local_path, user_path
|
||||
|
||||
local_folder = os.path.dirname(__file__)
|
||||
user_folder = user_path("worlds") if user_path() != local_path() else None
|
||||
user_folder = user_path("worlds") if user_path() != local_path() else user_path("custom_worlds")
|
||||
try:
|
||||
os.makedirs(user_folder, exist_ok=True)
|
||||
except OSError: # can't access/write?
|
||||
user_folder = None
|
||||
|
||||
__all__ = {
|
||||
"network_data_package",
|
||||
|
Reference in New Issue
Block a user