diff options
Diffstat (limited to 'bin/.local/bin/chardetect')
-rwxr-xr-x | bin/.local/bin/chardetect | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/.local/bin/chardetect b/bin/.local/bin/chardetect new file mode 100755 index 0000000..627b836 --- /dev/null +++ b/bin/.local/bin/chardetect | |||
@@ -0,0 +1,8 @@ | |||
1 | #!/usr/bin/python3.6 | ||
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()) | ||