diff options
| author | coasteen <coasteen@proton.me> | 2026-07-09 10:42:28 +0330 |
|---|---|---|
| committer | coasteen <coasteen@proton.me> | 2026-07-09 10:42:28 +0330 |
| commit | 8cbadb61604667b407b53ee1258433994fa4765a (patch) | |
| tree | 97765fb29418fd6278fcb4cbb9760893afaf7a58 /local/bin/qr | |
Diffstat (limited to 'local/bin/qr')
| -rwxr-xr-x | local/bin/qr | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/local/bin/qr b/local/bin/qr new file mode 100755 index 0000000..650c903 --- /dev/null +++ b/local/bin/qr @@ -0,0 +1,8 @@ +#!/nix/store/1ki8jq5sax0hm1sqbw0jk6qnqpy417zx-python3-3.13.5/bin/python3.13 +# -*- coding: utf-8 -*- +import re +import sys +from qrcode.console_scripts import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) |
