diff -ur v2/inc_ut.py v3/inc_ut.py --- v2/inc_ut.py 2020-09-15 04:10:46.000000000 +0900 +++ v3/inc_ut.py 2020-09-16 04:13:58.000000000 +0900 @@ -55,6 +55,8 @@ r = r.replace( k, v ) return r + search_dirs = [ os.path.dirname( __file__ ) ] + def inc_text(s): (path, opts) = match_path( s ) if path == None: @@ -62,7 +64,7 @@ path_lst = [ path ] if not path.startswith( '/' ): - path_lst.append( os.path.join( os.path.split( __file__ )[ 0 ], path ) ) + path_lst += list( map( lambda dir_: os.path.join( dir_, path ), search_dirs ) ) for path in path_lst: if os.path.exists( path ):