diff --git a/hypickle/Args.py b/hypickle/Args.py index 247427d..4a71321 100644 --- a/hypickle/Args.py +++ b/hypickle/Args.py @@ -1,13 +1,13 @@ from typing import List, Optional import copy +import re from . import Utils from . import Files class Args: def __init__(self, args: List[str]): - print(args[0]) - assert args[0] == 'hypickle/main.py' + assert re.split(r'/|\\', args[0])[-1] in ('main.py', 'hypickle') args = [arg if arg.endswith('.txt') else arg.lower() for arg in args[1:]] self._ARGS = Files.apply_aliases(args) self._ARG_KEYWORDS = ('all', 'friendsoffriends', 'justuuids', 'checkresults', diff --git a/pyproject.toml b/pyproject.toml index ec4748b..302e11f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta" [project] requires-python = ">= 3.0" name = "hypickle" -version = "1.0.38" +version = "1.0.39" dependencies = [ "requests", "rich",