~unidistro/unidistro/unidistro

« back to all changes in this revision

Viewing changes to framework/unidistro/configModule.py

  • Committer: Enrique Hernández Bello
  • Date: 2009-06-24 17:34:44 UTC
  • Revision ID: quique@osl.ull.es-20090624173444-krhyaho11oilzf2b
Changed path of source resources to a project file related directory.

Actual scheme remains like this:

- Source related:
[project_file]/<live_extra_content_dir>

- Packages related (Source):
[project_file_dir]/<copyright>
[project_file_dir]/<file>
[project_file_dir]/<directory>

- Workspace related:
[project_file_dir]/<project_dir>
[project_file_dir]/<project_dir>/source
[project_file_dir]/<project_dir>/source/<repository_dir>
[project_file_dir]/<project_dir>/live
[project_file_dir]/<project_dir>/<tmp_dir>
[project_file_dir]/<project_dir>/<tmp_dir>/<package>
[project_file_dir]/<project_dir>/debian_installer

- Output related:
[project_file_dir]/<project_dir>/<project_name>.ext3
[project_file_dir]/<project_dir>/<project_name>-<arch>.iso
[project_file_dir]/<project_dir>/<debfiles_dir>

Notes:
  1. Relative paths are full paths if they start with a slash.
  2. 'project_dir' could be called 'workspace_dir'.

Show diffs side-by-side

added added

removed removed

Lines of Context:
104
104
                                if (len(value) > 0): # the tag is not defined in config file 
105
105
                                        self._the_config[tag] = value
106
106
 
 
107
                self._the_config['project_file_dir'] = os.path.dirname(conf_file)
 
108
 
107
109
                # Apply the filename to the project name
108
110
                if self._the_config['project_name'] is "undefined":
109
111
                        self._the_config['project_name'] = os.path.splitext(os.path.basename(conf_file))[0];
180
182
                                pass
181
183
                        except ConfigParser.NoSectionError:
182
184
                                break
 
185
 
 
186
                # Path related to project_file_dir
 
187
                self._the_config['project_dir'] = os.path.join(self._the_config['project_file_dir'], self._the_config['project_dir'])
 
188
 
183
189
                self.printConfig ()
184
190
 
185
191
        def printConfig (self):