]> git.phdru.name Git - dotfiles.git/commitdiff
Fix(bin): Use my global user-installed python3
authorOleg Broytman <phd@phdru.name>
Wed, 11 Dec 2024 21:03:13 +0000 (00:03 +0300)
committerOleg Broytman <phd@phdru.name>
Wed, 11 Dec 2024 21:03:13 +0000 (00:03 +0300)
Many scripts import modules not installed
in the current virtual environment.

30 files changed:
bin/GET.py
bin/HEAD.py
bin/PS
bin/abspath.py
bin/browser-stack.py
bin/cmp.py
bin/compyle4vim.py
bin/decode-URLs.py
bin/get_html_encoding.py
bin/get_xml_encoding.py
bin/iconv.py
bin/iconvx.py
bin/idna.py
bin/koi2lat
bin/l8 [deleted file]
bin/lat2koi
bin/mc_type.py
bin/mutt8 [deleted file]
bin/recode-filenames-recursive.py
bin/recode_filenames.py
bin/text-wrap.py
bin/tt
bin/unicode_norm_nfd.py
bin/unzip.py
bin/vim8 [deleted file]
bin/webbrowser
bin/webbrowser-encode-url
bin/wget-download
bin/whereis [new symlink]
bin/zip.py

index 2f00d89b2975180179c78681d873d7e66db3d663..c20f0c1f5a558161e2d6360c2b330c53ac31e714 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/env python3
+#! /home/phd/.local/bin/python3
 
 from urllib.parse import urlsplit, parse_qsl, quote, quote_plus, urlencode
 from urllib.request import urlretrieve
index 6c0e5f7eb0d3bd30dddf2ad7d64dd8b2608fb5ff..334472d8b3060f945154b780364f4dc036357fb8 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/env python3
+#! /home/phd/.local/bin/python3
 
 from http.client import HTTPConnection, HTTPSConnection
 from urllib.parse import urlsplit, parse_qsl, urlencode, quote, quote_plus
diff --git a/bin/PS b/bin/PS
index 7fbd8b1cfb3b2b75c1303a2ad543af0f66f56f66..8fe10784f3dd36aae467ea4fc0ecad8ec67c151f 100755 (executable)
--- a/bin/PS
+++ b/bin/PS
@@ -1,4 +1,4 @@
-#! /usr/bin/env python3
+#! /home/phd/.local/bin/python3
 
 import sys, os
 
index cbda1c82a5aabe17b3ade882ca89264f923e3353..b5aeae6762c76f125ea17c0a43c22194cd2040a2 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/env python3
+#! /home/phd/.local/bin/python3
 
 import sys, os
 print(os.path.abspath(sys.argv[1]))
index 7120479aa70acf5486adbcaf0b0bf1756b262d8f..e0e6575f3091ef05b4d4688d88a7a5a0a46eb323 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/env python3
+#! /home/phd/.local/bin/python3
 
 from __future__ import print_function
 import sys, os
index 800e119ab5627f8dd6423cb6cf61001eb81a8205..45e3fd44847be75cfc290488331363a1ba11de9e 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/env python3
+#! /home/phd/.local/bin/python3
 """cmp.py: compare two files. Replace cmp because standard cmp cannot compare
 large files.
 """
index 08f93244ec2735d170a937a6f3ddf98f1390e07d..8c7d2563a7b56be6ffe85d460e31dd34b622c78a 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/env python3
+#! /home/phd/.local/bin/python3
 
 import sys, os
 
index 6b98bb3f01e8a84d167f19d47745fd6184cf8e02..1c164bdc9c02f1c1c4192e1ec1e61c8423ed81ba 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/env python3
+#! /home/phd/.local/bin/python3
 
 from urllib.parse import unquote
 import sys
index 381be9c10b19ea8fcbe78b05bc1f311ee28d1390..5fa5473f1969d7ae4a707b2a5e035adc924e68b7 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/env python3
+#! /home/phd/.local/bin/python3
 
 from m_lib.net.www.html import HTMLParser as _HTMLParser
 
index cdd9b6b585e01ee7ddde67f654c645ea43bc326d..cff2123c2994bf3c7c44959f4af06afabebbef16 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/env python3
+#! /home/phd/.local/bin/python3
 
 charset = None
 def xml_decl_handler(version, encoding, standalone):
index 8c8d96f0f252fccc493901249a0b67561c573474..6f594c652a5d3284d8788aa85738b1843cc307ae 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/env python3
+#! /home/phd/.local/bin/python3
 "Recode to default charset"
 
 import sys
index 7e9297309c3ecfd52aa59c605ef93e89d8de7673..7ec3c96597fe40db6592b11b3c52efaa6746da81 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/env python3
+#! /home/phd/.local/bin/python3
 "iconv wrapper"
 
 import os, shutil, tempfile
index 44843ac223fa4932ba872d64b6eea889fbb2b352..6019f050318e1f2214c35c29d169688593d4f7a4 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/env python3
+#! /home/phd/.local/bin/python3
 
 import sys
 from m_lib.defenc import default_encoding
index 46871001968ed74b285dc673090466340121dab0..81e1c823526dfbf65d0b9f119eb7b412f239c984 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/env python3
+#! /home/phd/.local/bin/python3
 
 import sys
 from m_lib.rus import rus2lat
diff --git a/bin/l8 b/bin/l8
deleted file mode 100755 (executable)
index d8b8566..0000000
--- a/bin/l8
+++ /dev/null
@@ -1,4 +0,0 @@
-#! /bin/sh
-
-. "$HOME"/lib/X11/koi8.vars
-exec luit -encoding koi8-r "$@"
index 9c43755353d7d3f6deb52e5f202d4ef867b19ba9..bb9f1adec7a006c265baff1d2f160d74488f68e0 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/env python3
+#! /home/phd/.local/bin/python3
 
 import sys
 from m_lib.rus import lat2rus
index d2e98843390068e52df3e42f8c9ae01a12eff465..04347cfc80d025f502ae82ddda723307e61427c9 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/env python3
+#! /home/phd/.local/bin/python3
 
 import sys, subprocess
 
diff --git a/bin/mutt8 b/bin/mutt8
deleted file mode 100755 (executable)
index 0fa81c4..0000000
--- a/bin/mutt8
+++ /dev/null
@@ -1,4 +0,0 @@
-#! /bin/sh
-
-. "$HOME"/lib/X11/utf-8.vars
-exec mutt "$@"
index 1d73a92cfad9d4c781e843157e79670a55882279..5afeed12d9a818619cb4d61b2dc776d0ce02a375 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/env python3
+#! /home/phd/.local/bin/python3
 
 import os
 
index 1f543d430dfb7be5e6eb8ef19338f8143000c847..1f2ece9c6c57a09cf262319d179c3bb4fce99585 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/env python3
+#! /home/phd/.local/bin/python3
 # -*- coding: koi8-r -*-
 
 import argparse
index ecfafa8f0d9d70b9ab41eca855f27962508e8419..4d54e104994cc67c7f725bf23d4b802823df81c9 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/env python3
+#! /home/phd/.local/bin/python3
 from __future__ import print_function
 
 import sys
diff --git a/bin/tt b/bin/tt
index 72eca819036be5ba8f805bab3d528adcdf574c9e..ef89da45d8160f927996ff0fb8b8775537d4519c 100755 (executable)
--- a/bin/tt
+++ b/bin/tt
@@ -1,2 +1,2 @@
 #! /bin/sh
-exec tcptraceroute "$@"
+exec sudo tcptraceroute "$@"
index 030de472232055aad1d7c63a73b7d65dc5eb4ddd..bd9d4523323148b90742713ff7a8bb8de045a7bb 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/env python3
+#! /home/phd/.local/bin/python3
 # https://stackoverflow.com/a/518232/7976758
 
 import sys
index ab62d240cf83482892dbcd08a0437cf1aa997fb0..c95cb018477a86966d659dc90851b69e611ff590 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/env python3
+#! /home/phd/.local/bin/python3
 """Unzip with encoded filenames
 
    Written by Oleg Broytman. Copyright (C) 2009-2024 PhiloSoft Design.
diff --git a/bin/vim8 b/bin/vim8
deleted file mode 100755 (executable)
index 63793c0..0000000
--- a/bin/vim8
+++ /dev/null
@@ -1,2 +0,0 @@
-#! /bin/sh
-exec vim -c "ed ++enc=utf-8" "$@"
index a4c20247039990823e979905d90923719477ab0a..c3e941442231d055d9f2155eeb91a31b28a4b9ed 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/env python3
+#! /home/phd/.local/bin/python3
 
 import sys, os
 
index 4444c4bd9f20d77b84644fa05eacd0f7ad67bfb4..4829e6d445d6673551b14fbd29bb94c393489803 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/env python3
+#! /home/phd/.local/bin/python3
 
 from getopt import getopt, GetoptError
 from urllib.parse import urlsplit, parse_qsl, quote, quote_plus, urlencode
index a851395a6b36aa8d610c146663beea21712ba78c..e9f0c701a5a12aa3937331ea95ca321ae6e190d5 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/env python3
+#! /home/phd/.local/bin/python3
 
 from getopt import getopt, GetoptError
 from urllib.parse import urlsplit, parse_qsl, quote, quote_plus, urlencode
diff --git a/bin/whereis b/bin/whereis
new file mode 120000 (symlink)
index 0000000..af2e482
--- /dev/null
@@ -0,0 +1 @@
+whence
\ No newline at end of file
index bf55a08f7f01c004111a5e84a37525f10851141c..99761a0a29a00370421929578d326ced98d7efbf 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/env python3
+#! /home/phd/.local/bin/python3
 """Zip (zip -r9) with encoded filenames
 
    Written by Oleg Broytman. Copyright (C) 2009-2023 PhiloSoft Design.