1
0
mirror of https://github.com/haiwen/libsearpc.git synced 2025-09-11 09:39:21 +00:00

Print the exact file that loaded rpc function table from

This commit is contained in:
plt
2013-12-30 10:29:30 +08:00
parent d0d6f35fd5
commit aedbbb184f

View File

@@ -182,8 +182,8 @@ if __name__ == "__main__":
f = os.path.basename(abspath)
mod = f[:f.rfind('.')]
sys.path.append(d)
print "load func_table from %s" % (abspath)
rpc_mod = __import__(mod, globals(), locals(), [], -1)
print "loaded func_table from %s" % (rpc_mod.__file__)
func_table = rpc_mod.func_table
else:
# load from default rpc_table.py