mirror of
https://github.com/haiwen/libsearpc.git
synced 2025-09-11 17:49:22 +00:00
Print the exact file that loaded rpc function table from
This commit is contained in:
@@ -182,8 +182,8 @@ if __name__ == "__main__":
|
|||||||
f = os.path.basename(abspath)
|
f = os.path.basename(abspath)
|
||||||
mod = f[:f.rfind('.')]
|
mod = f[:f.rfind('.')]
|
||||||
sys.path.append(d)
|
sys.path.append(d)
|
||||||
print "load func_table from %s" % (abspath)
|
|
||||||
rpc_mod = __import__(mod, globals(), locals(), [], -1)
|
rpc_mod = __import__(mod, globals(), locals(), [], -1)
|
||||||
|
print "loaded func_table from %s" % (rpc_mod.__file__)
|
||||||
func_table = rpc_mod.func_table
|
func_table = rpc_mod.func_table
|
||||||
else:
|
else:
|
||||||
# load from default rpc_table.py
|
# load from default rpc_table.py
|
||||||
|
Reference in New Issue
Block a user