summaryrefslogtreecommitdiffstats
path: root/lib/bin/chardetect
diff options
context:
space:
mode:
authorxiubuzhe <xiubuzhe@sina.com>2023-10-08 20:59:00 +0800
committerxiubuzhe <xiubuzhe@sina.com>2023-10-08 20:59:00 +0800
commit1dac2263372df2b85db5d029a45721fa158a5c9d (patch)
tree0365f9c57df04178a726d7584ca6a6b955a7ce6a /lib/bin/chardetect
parentb494be364bb39e1de128ada7dc576a729d99907e (diff)
downloadsunhpc-1dac2263372df2b85db5d029a45721fa158a5c9d.tar.gz
sunhpc-1dac2263372df2b85db5d029a45721fa158a5c9d.tar.bz2
sunhpc-1dac2263372df2b85db5d029a45721fa158a5c9d.zip
first add files
Diffstat (limited to 'lib/bin/chardetect')
-rwxr-xr-xlib/bin/chardetect8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/bin/chardetect b/lib/bin/chardetect
new file mode 100755
index 0000000..0c5ee27
--- /dev/null
+++ b/lib/bin/chardetect
@@ -0,0 +1,8 @@
+#!/opt/sunpy3/bin/python3.9
+# -*- coding: utf-8 -*-
+import re
+import sys
+from chardet.cli.chardetect import main
+if __name__ == '__main__':
+ sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
+ sys.exit(main())