spcd/cd/__main__.py
Marc Beninca e27f66e569
Some checks failed
/ job (push) Failing after 6s
command
2024-04-26 23:24:46 +02:00

15 lines
257 B
Python
Executable file

#! /usr/bin/env python3
import os
import sys
import cd
if __name__ == '__main__':
command, *_ = sys.argv
command = os.path.basename(command)
if command == '__main__.py':
cd.install_commands(__file__)
else:
print(command)