[issue43247] How to search for a __main__ module using pyclbr in Python3?

2021-02-22 Thread Robert
Robert added the comment: # `__main__` of the source code directory: `/tmp/rebound/rebound`. # differentiate `__main__` of my target source code to read from the built-in `__main__`? In other words, how do I read the module `__main__` of the codebase: rebound? => when __main__.py is

[issue43247] How to search for a __main__ module using pyclbr in Python3?

2021-02-17 Thread Aviral Srivastava
New submission from Aviral Srivastava : I want to get all the functions and classes in module: `__main__` of the source code directory: `/tmp/rebound/rebound`. When I use the `pyclbr.readmodule_ex` API: ``` source_code_data = pyclbr.readmodule_ex(source_code_module, path=source_code_path)