summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2011-07-23 13:11:19 +0300
committerAlon Levy <alevy@redhat.com>2011-07-23 13:13:23 +0300
commit345c0b9818d5624858cfeb6b9ddba92d4eb64a0d (patch)
treec2f6721380f8ac400249a7d6eb9ac8172bc099bd /scripts
parenta596303cb1f6bfcbb3ea9575faa8e984c52eb5a8 (diff)
scripts/xspice: fix --cgdb
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/xspice4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/xspice b/scripts/xspice
index 48c680c..edf3203 100755
--- a/scripts/xspice
+++ b/scripts/xspice
@@ -27,9 +27,9 @@ def which(x):
return candidate
return None
-cgdb = which('cgdb') and os.path.exists(
+cgdb = which('cgdb') if os.path.exists(
os.path.join(os.path.dirname(sys.modules[__name__].__file__),
- 'configure.ac'))
+ 'Makefile.am')) else None
def add_boolean(flag, *args, **kw):
parser.add_argument(flag, action='store_const', const='1', default='0',