diff --git a/worlds/sims4/Client.py b/worlds/sims4/Client.py index 62d6164faac3..392cf1f5fb3d 100644 --- a/worlds/sims4/Client.py +++ b/worlds/sims4/Client.py @@ -92,11 +92,13 @@ def _cmd_set_path(self, sims_4_mods_path: str = ''): """Set the file path to the Sims 4 mods folder manually (if automatic detection fails)""" p = sims_4_mods_path global mod_data_path - if p == '': - self.output('no path inputed') + if not p: + self.output("No path provided") elif os.path.exists(os.path.join(p, 'mod_data', 's4ap')): self.output('Sims 4 mods folder found') mod_data_path = os.path.join(p, 'mod_data', 's4ap') + elif not os.path.isabs(p): + self.output("Please enter the full path to the Sims 4 mods folder.\nFor example: C:\\Users\\Username\\Documents\\Electronic Arts\\The Sims 4\\Mods") else: self.ctx.gui_error(title='Sims 4 mods folder not found', text=f'Make sure the file path you inputed is correct.') @@ -252,7 +254,7 @@ async def game_watcher(ctx: SimsContext): await asyncio.sleep(0.5) -def main(args): +def main(args: list[str] | None = None) -> None: async def _main(): parser = get_base_parser(description="The Sims 4 Client, for text interfacing.") _args, _rest = parser.parse_known_args(args)