diff options
author | Mark Spruiell <mes@zeroc.com> | 2009-12-30 13:54:07 -0800 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2009-12-30 13:54:07 -0800 |
commit | aef5c31e31f38203064641ab9215cf98eff4d01c (patch) | |
tree | cc5cdf5275267dac8951e1f4a5ea0da903e3b329 /demoscript/Util.py | |
parent | bug 4560 - mention VS extension in CHANGES (diff) | |
download | ice-aef5c31e31f38203064641ab9215cf98eff4d01c.tar.bz2 ice-aef5c31e31f38203064641ab9215cf98eff4d01c.tar.xz ice-aef5c31e31f38203064641ab9215cf98eff4d01c.zip |
bug 4558 - require --mode in demo scripts for bindist
Diffstat (limited to 'demoscript/Util.py')
-rw-r--r-- | demoscript/Util.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/demoscript/Util.py b/demoscript/Util.py index 144b57ab365..6a287452293 100644 --- a/demoscript/Util.py +++ b/demoscript/Util.py @@ -442,7 +442,7 @@ def guessBuildMode(): else: m = guessBuildModeForDir(".") if m is None: - raise "cannot guess debug or release mode" + raise RuntimeError("cannot guess debug or release mode") return m def isDebugBuild(): @@ -669,6 +669,10 @@ def processCmdLine(): if env: dumpenv() + if iceHome and isWin32() and not buildmode: + print "Error: please define --mode=debug or --mode=release" + sys.exit(1) + import inspect frame = inspect.currentframe().f_back if frame and os.path.split(frame.f_code.co_filename)[1] == "expect.py": |