]> git.phdru.name Git - bookmarks_db.git/blobdiff - Robots/bkmk_rforking_sub.py
Feat: Set shebang to `python3`
[bookmarks_db.git] / Robots / bkmk_rforking_sub.py
index 9b25b5b98e5bd28d514c84c21f735ae5f9d77ae7..6fb929e38fc1472c3a477ed1d1f08f0ed5c6975a 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#! /usr/bin/env python3
 """Subprocess for the forking robot - check URL using bkmk_rurlib robot
 
 This file is a part of Bookmarks database and Internet robot.
@@ -6,16 +6,14 @@ This file is a part of Bookmarks database and Internet robot.
 """
 
 __author__ = "Oleg Broytman <phd@phdru.name>"
-__copyright__ = "Copyright (C) 1999-2017 PhiloSoft Design"
+__copyright__ = "Copyright (C) 1999-2023 PhiloSoft Design"
 __license__ = "GNU GPL"
 
 __all__ = []
 
 
-import sys, os
-
-lib_dir = os.path.normpath(os.path.join(os.path.dirname(sys.argv[0]), os.pardir))
-sys.path.append(lib_dir) # for bkmk_objects.py
+import os
+import sys
 
 try:
     import cPickle
@@ -25,6 +23,9 @@ except ImportError:
 
 from subproc import RecordFile
 
+lib_dir = os.path.normpath(os.path.dirname(os.path.dirname(sys.argv[0])))
+sys.path.append(lib_dir)  # for bkmk_objects.py
+
 
 def run():
     bkmk_in = RecordFile(sys.stdin)