PluginProjectPyramid.py

branch
eric7
changeset 164
277a93891db9
parent 162
c044d1dd8116
child 166
8b0cc7528c70
equal deleted inserted replaced
163:e3ed5e2856d7 164:277a93891db9
5 5
6 """ 6 """
7 Module implementing the Pyramid project plugin. 7 Module implementing the Pyramid 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
19 try:
20 from eric7.SystemUtilities.OSUtilities import isMacPlatform, isWindowsPlatform
21 except ImportError:
22 # imports for eric < 23.1
23 from eric7.Globals import isWindowsPlatform, isMacPlatform
19 24
20 from ProjectPyramid.Project import Project 25 from ProjectPyramid.Project import Project
21 26
22 # Start-of-Header 27 # Start-of-Header
23 name = "Pyramid Project Plugin" 28 name = "Pyramid Project Plugin"
24 author = "Detlev Offenbach <detlev@die-offenbachs.de>" 29 author = "Detlev Offenbach <detlev@die-offenbachs.de>"
25 autoactivate = True 30 autoactivate = True
26 deactivateable = True 31 deactivateable = True
27 version = "10.2.0" 32 version = "10.3.0"
28 className = "ProjectPyramidPlugin" 33 className = "ProjectPyramidPlugin"
29 packageName = "ProjectPyramid" 34 packageName = "ProjectPyramid"
30 shortDescription = "Project support for Pyramid projects." 35 shortDescription = "Project support for Pyramid projects."
31 longDescription = """This plugin implements project support for Pyramid projects.""" 36 longDescription = """This plugin implements project support for Pyramid projects."""
32 needsRestart = False 37 needsRestart = False
192 ) 197 )
193 198
194 try: 199 try:
195 # backward compatibility for eric7 < 22.12 200 # backward compatibility for eric7 < 22.12
196 from eric7.Project.ProjectBrowser import ( 201 from eric7.Project.ProjectBrowser import (
202 FormsBrowserFlag,
203 OthersBrowserFlag,
197 SourcesBrowserFlag, 204 SourcesBrowserFlag,
198 FormsBrowserFlag,
199 TranslationsBrowserFlag, 205 TranslationsBrowserFlag,
200 OthersBrowserFlag,
201 ) 206 )
202 207
203 Preferences.setProjectBrowserFlagsDefault( 208 Preferences.setProjectBrowserFlagsDefault(
204 "Pyramid", 209 "Pyramid",
205 SourcesBrowserFlag 210 SourcesBrowserFlag

eric ide

mercurial