src/eric7/eric7_pluginrepository.py

branch
eric7
changeset 9413
80c06d472826
parent 9221
bf71ee032bb4
child 9473
3f23dbf37dbe
equal deleted inserted replaced
9412:45e7bb09c120 9413:80c06d472826
12 """ 12 """
13 13
14 import sys 14 import sys
15 import os 15 import os
16 16
17 sys.path.insert(1, os.path.dirname(__file__))
18
19 for arg in sys.argv[:]: 17 for arg in sys.argv[:]:
20 if arg.startswith("--config="): 18 if arg.startswith("--config="):
21 import Globals 19 from eric7 import Globals
22 20
23 configDir = arg.replace("--config=", "") 21 configDir = arg.replace("--config=", "")
24 Globals.setConfigDir(configDir) 22 Globals.setConfigDir(configDir)
25 sys.argv.remove(arg) 23 sys.argv.remove(arg)
26 elif arg.startswith("--settings="): 24 elif arg.startswith("--settings="):
32 QSettings.setPath( 30 QSettings.setPath(
33 QSettings.Format.IniFormat, QSettings.Scope.UserScope, settingsDir 31 QSettings.Format.IniFormat, QSettings.Scope.UserScope, settingsDir
34 ) 32 )
35 sys.argv.remove(arg) 33 sys.argv.remove(arg)
36 34
37 from Globals import AppInfo 35 from eric7.Globals import AppInfo
38 36
39 from Toolbox import Startup 37 from eric7.Toolbox import Startup
40 38
41 39
42 def createMainWidget(argv): 40 def createMainWidget(argv):
43 """ 41 """
44 Function to create the main widget. 42 Function to create the main widget.
45 43
46 @param argv list of commandline parameters (list of strings) 44 @param argv list of commandline parameters (list of strings)
47 @return reference to the main widget (QWidget) 45 @return reference to the main widget (QWidget)
48 """ 46 """
49 from PluginManager.PluginRepositoryDialog import PluginRepositoryWindow 47 from eric7.PluginManager.PluginRepositoryDialog import PluginRepositoryWindow
50 48
51 return PluginRepositoryWindow(None) 49 return PluginRepositoryWindow(None)
52 50
53 51
54 def main(): 52 def main():

eric ide

mercurial