HAYASHI Kentaro
null+****@clear*****
Sat Sep 27 23:06:18 JST 2014
HAYASHI Kentaro 2014-09-27 23:06:18 +0900 (Sat, 27 Sep 2014) New Revision: 760994cdf1752547b5fb51e24c64004a72bb8e0f https://github.com/groonga/groonga/commit/760994cdf1752547b5fb51e24c64004a72bb8e0f Message: doc: accept wait time as 2nd argument Modified files: doc/update_execution_example.py Modified: doc/update_execution_example.py (+4 -1) =================================================================== --- doc/update_execution_example.py 2014-09-27 00:12:27 +0900 (b2ec1a0) +++ doc/update_execution_example.py 2014-09-27 23:06:18 +0900 (c7670c6) @@ -75,7 +75,6 @@ def execmd(command, fout): return output_buffer = "" first_timeout = 1 - rest_timeout = 0.1 timeout = first_timeout while True: out = select([groonga_process.stdout], [], [], timeout) @@ -188,8 +187,12 @@ def readfile(fname, outflag): print '###<<< include end' entry_point = "source/" +rest_timeout = 0.1 if len(argv) == 2: entry_point = argv[1] +elif len(argv) == 3: + entry_point = argv[1] + rest_timeout = float(argv[2]) if os.path.isfile(entry_point): readfile(entry_point, 0) else: -------------- next part -------------- HTML����������������������������...Download