arg type check

master
JoYo 2021-12-07 18:35:52 -05:00
parent fa927f40b8
commit 9b61c1b3c7
1 changed files with 3 additions and 2 deletions

View File

@ -34,8 +34,9 @@ def periodical_script():
logging.info(args)
if args.eso_live_path[:2] == "~/":
args.eso_live_path = Path.home().joinpath(args.eso_live_path[2:])
if isinstance(args.eso_live_path, str):
if args.eso_live_path[:2] == "~/":
args.eso_live_path = Path.home().joinpath(args.eso_live_path[2:])
config_path = Path(args.eso_live_path).joinpath("addons.yaml")
config_path.touch(exist_ok=True)