MCPcopy Create free account
hub / github.com/OWASP/Python-Honeypot / get_module_dir_path

Function get_module_dir_path

core/compatible.py:182–194  ·  view source on GitHub ↗

get a module path Args: module: module Returns: path

(module)

Source from the content-addressed store, hash-verified

180
181
182def get_module_dir_path(module):
183 """
184 get a module path
185
186 Args:
187 module: module
188
189 Returns:
190 path
191 """
192 return os.path.dirname(
193 inspect.getfile(module)
194 )
195
196
197def generate_token(length=32):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected