parent
46305b4a6c
commit
2a4e37a5eb
1 changed files with 2 additions and 2 deletions
|
@ -115,12 +115,12 @@ def install_commands(path: str) -> None:
|
||||||
(user / f"{COMMANDS_PREFIX}{command}").symlink_to(path)
|
(user / f"{COMMANDS_PREFIX}{command}").symlink_to(path)
|
||||||
|
|
||||||
|
|
||||||
def main() -> None:
|
def main(main: str) -> None:
|
||||||
path, *arguments = sys.argv
|
path, *arguments = sys.argv
|
||||||
name = Path(path).name
|
name = Path(path).name
|
||||||
if name == "__main__.py":
|
if name == "__main__.py":
|
||||||
pidd.set_ssh(*arguments)
|
pidd.set_ssh(*arguments)
|
||||||
pidd.install_commands(__file__)
|
pidd.install_commands(main)
|
||||||
else:
|
else:
|
||||||
function = getattr(pidd, name.replace("-", "_"))
|
function = getattr(pidd, name.replace("-", "_"))
|
||||||
function(*arguments)
|
function(*arguments)
|
||||||
|
|
Loading…
Reference in a new issue