5 |
5 |
6 """ |
6 """ |
7 Module implementing the Flask project plugin. |
7 Module implementing the Flask project plugin. |
8 """ |
8 """ |
9 |
9 |
|
10 import fnmatch |
|
11 import glob |
10 import os |
12 import os |
11 import glob |
|
12 import fnmatch |
|
13 |
13 |
14 from PyQt6.QtCore import QCoreApplication, QObject, QTranslator |
14 from PyQt6.QtCore import QCoreApplication, QObject, QTranslator |
15 |
15 |
16 from eric7 import Preferences |
16 from eric7 import Preferences |
17 from eric7.EricWidgets.EricApplication import ericApp |
17 from eric7.EricWidgets.EricApplication import ericApp |
18 from eric7.Globals import isWindowsPlatform, isMacPlatform |
18 from eric7.Globals import isMacPlatform, isWindowsPlatform |
19 |
|
20 |
|
21 from ProjectFlask.Project import Project |
19 from ProjectFlask.Project import Project |
22 |
20 |
23 # Start-of-Header |
21 # Start-of-Header |
24 name = "Flask Project Plugin" |
22 name = "Flask Project Plugin" |
25 author = "Detlev Offenbach <detlev@die-offenbachs.de>" |
23 author = "Detlev Offenbach <detlev@die-offenbachs.de>" |
188 binaryTranslationsCallback=self.binaryTranslationsCallback, |
186 binaryTranslationsCallback=self.binaryTranslationsCallback, |
189 progLanguages=self.__supportedVariants[:], |
187 progLanguages=self.__supportedVariants[:], |
190 ) |
188 ) |
191 |
189 |
192 from eric7.Project.ProjectBrowser import ( |
190 from eric7.Project.ProjectBrowser import ( |
|
191 FormsBrowserFlag, |
|
192 OthersBrowserFlag, |
193 SourcesBrowserFlag, |
193 SourcesBrowserFlag, |
194 FormsBrowserFlag, |
|
195 TranslationsBrowserFlag, |
194 TranslationsBrowserFlag, |
196 OthersBrowserFlag, |
|
197 ) |
195 ) |
198 |
196 |
199 Preferences.setProjectBrowserFlagsDefault( |
197 Preferences.setProjectBrowserFlagsDefault( |
200 "Flask", |
198 "Flask", |
201 SourcesBrowserFlag |
199 SourcesBrowserFlag |