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

Function GetPathPrefix

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

Source from the content-addressed store, hash-verified

23 return ""
24
25def GetPathPrefix(key):
26 makefile_def=open("makefile.mk")
27 lines = makefile_def.readlines()
28 makefile_def.close()
29
30 res_list=[]
31 for line in lines:
32 key_value = line.split('=')
33 if( str.strip(key_value[0])[0:len(key)] == key and str.strip(key_value[0])[-4:]=="PATH"):
34 res=str.strip(key_value[1])
35 res=res.replace("$(SRC_BASE_PATH)",base_dir);
36 res=res.replace("$(PHXSQL_LIB_PATH)",lib_dir);
37 res_list.append( (str.strip(key_value[0]),res) )
38 return res_list
39
40def CheckMySql():
41 if( not os.path.exists( base_dir+"/percona") ):

Callers 1

Check3rdPathFunction · 0.85

Calls 2

closeMethod · 0.80
appendMethod · 0.80

Tested by

no test coverage detected