Mercurial > hg > cc > cirrus_home
comparison .local/bin/chardetect @ 66:a8bb3b4c208f
misc
| author | Henry S. Thompson <ht@inf.ed.ac.uk> |
|---|---|
| date | Fri, 24 Apr 2020 20:01:35 +0100 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 65:e71aeb3355ff | 66:a8bb3b4c208f |
|---|---|
| 1 #!/lustre/sw/miniconda3/bin/python | |
| 2 # -*- coding: utf-8 -*- | |
| 3 import re | |
| 4 import sys | |
| 5 from chardet.cli.chardetect import main | |
| 6 if __name__ == '__main__': | |
| 7 sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) | |
| 8 sys.exit(main()) |
