Code Search for Developers
 
 
  

bundle.py from The Nebula Device at Krugle


Show bundle.py syntax highlighted

#--------------------------------------------------------------------------
# (c) 2005 Vadim Macagon
#
# Contents are licensed under the Nebula license.
#--------------------------------------------------------------------------

class Bundle:

    #--------------------------------------------------------------------------
    def __init__(self, bundleName, bldFilename):
        self.buildSys = None
        # these more or less directly correspond to stuff in bld files
        self.name = bundleName
        self.annotation = ''
        self.modules = []
        self.targets = []
        self.bldFile = bldFilename

    #--------------------------------------------------------------------------
    def Validate(self):
        dataValid = True
        # check bundle modules are defined
        for moduleName in self.modules:
            if moduleName not in self.buildSys.modules:
                self.buildSys.logger.error('Undefined module %s referenced' \
                                           ' in bundle %s from %s', moduleName,
                                           self.name, self.bldFile)
                dataValid = False
        # check bundle targets are defined
        for targetName in self.targets:
            if targetName not in self.buildSys.targets:
                self.buildSys.logger.error('Undefined target %s referenced' \
                                           ' in bundle %s from %s', targetName,
                                           self.name, self.bldFile)
                dataValid = False
        return dataValid

#--------------------------------------------------------------------------
# EOF
#--------------------------------------------------------------------------




See more files for this project here

The Nebula Device

Realtime 3D game/visualization engine, written in C++, scriptable through Tcl/Tk, Python and Lua. Supports D3D and OpenGL for rendering, runs under Linux and Windows.

Project homepage: http://sourceforge.net/projects/nebuladevice
Programming language(s): C,C++,Python
License: other

  Plex/
    Actions.py
    DFA.py
    Errors.py
    Lexicons.py
    Machines.py
    README
    Regexps.py
    Scanners.py
    TODO
    Timing.py
    Traditional.py
    Transitions.py
    __init__.py
    test_tm.py
  docs/
    layout/
      inset-h.jpg
      nav-end.gif
      nav-start.jpg
      nebuladevice2.gif
      tnd.css
      top-back.gif
      top-image.jpg
    screens/
      classbuilderconfirm.png
      classbuildertab.png
      workspacestab.png
    Manual.html
  generators/
    __init__.py
    doxygen.py
    factory.py
    makefile.py
    vstudio7.py
    vstudio71.py
    vstudio8.py
  gui/
    xrc/
      format_dlg.xrc
      renderpath.xrc
    __init__.py
    buildlog.py
    classbuilderpanel.py
    cmddatapanels.py
    cmdeditorpanel.py
    cmdparser.py
    doxygengeneratorsettings.py
    externaltaskdialog.py
    main.py
    workspacespanel.py
    xrcguiutils.py
  __init__.py
  bldscanner.py
  buildconfig.py
  buildsys.py
  bundle.py
  config.mak
  externaltask.py
  guid.py
  module.py
  pykillwinproc.pyd
  target.py
  workspace.py