get path library python code example
Example 1: how to get path of all the functions in a python module
result=[]
your_module = ?
for i in dir(your_module):
if type(getattr(your_module, i)).__name__ == "function":
result.append(getattr(your_module, i))
print(result)
Example 2: get path from file path python
>>> import os
>>> os.path.split(os.path.abspath(existGDBPath))
('T:\\Data\\DBDesign', 'DBDesign_93_v141b.mdb')