get a module path Args: module: module Returns: path
(module)
| 180 | |
| 181 | |
| 182 | def 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 | |
| 197 | def generate_token(length=32): |
no outgoing calls
no test coverage detected