You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gump.apache.org by le...@apache.org on 2005/07/11 15:32:11 UTC
svn commit: r210126 - /gump/branches/Gump3/pygump/python/gump/model/util.py
Author: leosimons
Date: Mon Jul 11 06:32:11 2005
New Revision: 210126
URL: http://svn.apache.org/viewcvs?rev=210126&view=rev
Log:
Getting rid of '.' and '..' in all paths we pass around.
pygump/python/gump/model/util.py: make all get_xxx_directory methods return absolute paths.
Modified:
gump/branches/Gump3/pygump/python/gump/model/util.py
Modified: gump/branches/Gump3/pygump/python/gump/model/util.py
URL: http://svn.apache.org/viewcvs/gump/branches/Gump3/pygump/python/gump/model/util.py?rev=210126&r1=210125&r2=210126&view=diff
==============================================================================
--- gump/branches/Gump3/pygump/python/gump/model/util.py (original)
+++ gump/branches/Gump3/pygump/python/gump/model/util.py Mon Jul 11 06:32:11 2005
@@ -31,23 +31,23 @@
def get_jar_path(jar):
"""Determine the path to a Jar."""
- return join(get_project_home_directory(jar.project),jar.name)
+ return abspath(join(get_project_home_directory(jar.project),jar.name))
def get_project_home_directory(project):
"""Determine the home directory for a project."""
- return join(get_project_directory(project),project.homedir)
+ return abspath(join(get_project_directory(project),project.homedir))
def get_project_directory(project):
"""Determine the base directory for a project."""
- return join(get_module_directory(project.module),project.path)
+ return abspath(join(get_module_directory(project.module),project.path))
def get_module_directory(module):
"""Determine the base directory for a module."""
- return join(get_repository_directory(module.repository),module.name)
+ return abspath(join(get_repository_directory(module.repository),module.name))
def get_repository_directory(repository):
"""Determine the base directory for a repository."""
- return join(get_workspace_directory(repository.workspace),repository.name)
+ return abspath(join(get_workspace_directory(repository.workspace),repository.name))
def get_workspace_directory(workspace):
"""Determine the base directory for a workspace."""