Extended the programs dialog to allow plug-ins to specify the line containing version information with a regular expression (key 'versionRe').

Tue, 16 Jan 2018 14:16:29 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 16 Jan 2018 14:16:29 +0100
changeset 6068
97a787b53663
parent 6066
4f0d9d659cf5
child 6069
25114fbfb731

Extended the programs dialog to allow plug-ins to specify the line containing version information with a regular expression (key 'versionRe').

Preferences/ProgramsDialog.py file | annotate | diff | comparison | revisions
--- a/Preferences/ProgramsDialog.py	Sun Jan 14 13:41:30 2018 +0100
+++ b/Preferences/ProgramsDialog.py	Tue Jan 16 14:16:29 2018 +0100
@@ -263,6 +263,8 @@
             if info["programEntry"]:
                 if "exeModule" not in info:
                     info["exeModule"] = None
+                if "versionRe" not in info:
+                    info["versionRe"] = None
                 self.__createProgramEntry(
                     info["header"],
                     info["exe"],
@@ -271,6 +273,7 @@
                     versionPosition=info["versionPosition"],
                     version=info["version"],
                     versionCleanup=info["versionCleanup"],
+                    versionRe=info["versionRe"],
                     exeModule=info["exeModule"],
                 )
             else:

eric ide

mercurial