X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=Robots%2Fbkmk_rforking_sub.py;h=7dd1f5fa7b7da797bff902338afe0507665e4335;hb=refs%2Ftags%2Fv4.6.0;hp=6fccf407b25da67cebcc818ee8fd6afaaedadc08;hpb=0e76f1851882b99da63a7c8a9e4cdf0c4a48657f;p=bookmarks_db.git diff --git a/Robots/bkmk_rforking_sub.py b/Robots/bkmk_rforking_sub.py index 6fccf40..7dd1f5f 100755 --- a/Robots/bkmk_rforking_sub.py +++ b/Robots/bkmk_rforking_sub.py @@ -1,14 +1,20 @@ #! /usr/bin/env python -""" - Check URL - subprocess for the forking robot +"""Subprocess for the forking robot - check URL using bkmk_rurlib robot + +This file is a part of Bookmarks database and Internet robot. - Written by Broytman. Copyright (C) 1999-2007 PhiloSoft Design. """ +__author__ = "Oleg Broytman " +__copyright__ = "Copyright (C) 1999-2014 PhiloSoft Design" +__license__ = "GNU GPL" + +__all__ = [] + import sys, os -lib_dir = os.path.normpath(os.path.dirname(sys.argv[0]) + os.sep + os.pardir) +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 try: @@ -18,7 +24,6 @@ except ImportError: import pickle from subproc import RecordFile -import bkmk_rsimple def run(): @@ -27,8 +32,8 @@ def run(): from m_lib.flog import openlog log = openlog("check2.log") - from bkmk_rsimple import robot_simple - robot = robot_simple(None, log) + from robots import robot + robot = robot(log) while 1: bookmark = pickle.loads(bkmk_in.read_record())