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/07 19:42:05 UTC
svn commit: r209621 - /gump/branches/Gump3/pygump/python/main.py
Author: leosimons
Date: Thu Jul 7 10:42:03 2005
New Revision: 209621
URL: http://svn.apache.org/viewcvs?rev=209621&view=rev
Log:
Allow for specifying workspace relative to GUMP_HOME
Modified:
gump/branches/Gump3/pygump/python/main.py
Modified: gump/branches/Gump3/pygump/python/main.py
URL: http://svn.apache.org/viewcvs/gump/branches/Gump3/pygump/python/main.py?rev=209621&r1=209620&r2=209621&view=diff
==============================================================================
--- gump/branches/Gump3/pygump/python/main.py (original)
+++ gump/branches/Gump3/pygump/python/main.py Thu Jul 7 10:42:03 2005
@@ -42,7 +42,7 @@
# for log messages...
SEP = "------------------------------------------------------------------------------\n"
-GUMP_VERSION = '3.0-alpha-3'
+GUMP_VERSION = '3.0-alpha-4'
# log levels
DEBUG = 5
@@ -107,7 +107,7 @@
"--workspace",
action="store",
default=_workspace,
- help="absolute path to the workspace gump will use")
+ help="path to the workspace gump will use")
parser.add_option("-u",
"--do-updates",
action="store_true",
@@ -488,8 +488,12 @@
log.debug("No projects to build set, defaulting to 'all'")
options.projects = ["all"]
if not os.path.exists(options.workspace):
- log.error("Workspace not found : %s.\n Maybe you need to specify --workspace=/absolute/path/to/some/workspace/file.xml?" % options.workspace)
- sys.exit(1)
+ abspath = os.path.join(options.homedir, options.workspace)
+ if os.path.exists(abspath):
+ options.workspace = abspath
+ else:
+ log.error("Workspace not found : %s.\n Maybe you need to specify --workspace=/absolute/path/to/some/workspace/file.xml?" % options.workspace)
+ sys.exit(1)
# get some more options from the workspace
_parse_workspace(options.workspace, options)