annotate .local/bin/chardetect @ 195:5f3c36e4fd6d default tip

add target test-core which (dangerously) avoids (we hope pointless) recompilation of all the plugins
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Thu, 26 Sep 2024 17:55:56 +0100
parents a8bb3b4c208f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
66
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
1 #!/lustre/sw/miniconda3/bin/python
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
2 # -*- coding: utf-8 -*-
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
3 import re
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
4 import sys
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
5 from chardet.cli.chardetect import main
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
6 if __name__ == '__main__':
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
7 sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
8 sys.exit(main())