chiark / gitweb /
Move SF into its own directory, to seperate SF and Cura. Rename newui to gui.
[cura.git] / Cura / cura_sf / skeinforge_application / skeinforge_plugins / meta.py
1 """
2 This page is in the table of contents.
3 Meta is a script to access the plugins which handle meta information.
4
5 """
6
7 from __future__ import absolute_import
8 #Init has to be imported first because it has code to workaround the python bug where relative imports don't work if the module is imported as a main module.
9 import __init__
10
11 from fabmetheus_utilities import archive
12 from fabmetheus_utilities import settings
13 from skeinforge_application.skeinforge_utilities import skeinforge_meta
14
15
16 __author__ = 'Enrique Perez (perez_enrique@yahoo.com)'
17 __date__ = '$Date: 2008/21/04 $'
18 __license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'
19
20
21 def addToMenu( master, menu, repository, window ):
22         "Add a tool plugin menu."
23         metaFilePath = archive.getSkeinforgePluginsPath('meta.py')
24         settings.addPluginsParentToMenu(skeinforge_meta.getPluginsDirectoryPath(), menu, metaFilePath, skeinforge_meta.getPluginFileNames())
25
26 def getNewRepository():
27         'Get new repository.'
28         return skeinforge_meta.MetaRepository()
29
30
31 def main():
32         "Display the meta dialog."
33         settings.startMainLoopFromConstructor(getNewRepository())
34
35 if __name__ == "__main__":
36         main()