moltenform / scite-files

Translations and extras for the SciTE code editor --- see the links below for more information!
123 stars 44 forks source link

Update mpheath's python script to v1.4 #42

Closed mpheath closed 4 years ago

mpheath commented 4 years ago

Update from v1.2 to v1.4.

v1.4 summary highlight:

Now creates a new list of modules from sys.modules after the import of the modules, rather than reuse of the list from pydoc and objects from importlib. This increases the size of the module list as sub-modules are included. The include_modules_fullname list in settings has less items now as those items will be in the new module list. This should also benefit the inspection of site-packages as every module imported will be in the list.

My URLs added to gen_python_3_api.py similar to how you placed it in v1.2.

v1.3 summary highlight:

Added write comment header of generator details in write_properties(). This saves you from manually adding the details to the generated python3_keywords.properties file.

Example:

# Generator: gen_python_3_api.py
# Platform : win32
# Python   : 3.8.0 final

I added Platform as you appear to use win32 for your api files, as modules for linux or other platforms are absent i.e. module CDROM. So, non win32 users know to generate their own api files for their platform.

History:

Check at my Github or my Home page for further information.

moltenform commented 4 years ago

Thanks for the contribution! I've been using your script to help generate my python tooltips in SciTE.

moltenform commented 4 years ago

Re: platform, yes, that is my rationale as well. Non-win32 users typically run the script on their own.