MCPcopy Create free account
hub / github.com/Tencent/phxsql / GetPath

Function GetPath

tools/check_install.py:11–23  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

9third_party_list=["PROTOBUF", "LEVELDB", "GLOG", "PHXPAXOS", "PHXPAXOS_PLUGIN", "COLIB"]
10
11def GetPath(key):
12 makefile_def=open("makefile.mk")
13 lines = makefile_def.readlines()
14 makefile_def.close()
15
16 for line in lines:
17 key_value = line.split('=')
18 if( str.strip(key_value[0]) == key ):
19 res=str.strip(key_value[1])
20 res=res.replace("$(SRC_BASE_PATH)",base_dir);
21 res=res.replace("$(PHXSQL_LIB_PATH)",lib_dir);
22 return res
23 return ""
24
25def GetPathPrefix(key):
26 makefile_def=open("makefile.mk")

Callers 1

CheckBasePathFunction · 0.85

Calls 1

closeMethod · 0.80

Tested by

no test coverage detected