aboutsummaryrefslogtreecommitdiff
path: root/ndk-gdb.py
diff options
context:
space:
mode:
authorRay Donnelly <mingw.android@gmail.com>2013-08-11 00:35:00 +0100
committerRay Donnelly <mingw.android@gmail.com>2013-08-11 00:35:00 +0100
commit0a9da1b9be8ebe50c7772249fa4e2baaaf4372b5 (patch)
tree514d4f9230f0b18eae3b4bdd298bfab8676daedd /ndk-gdb.py
parent0ff95f4b0c576971f5079c9976e1f98f629aca6d (diff)
downloadndk-0a9da1b9be8ebe50c7772249fa4e2baaaf4372b5.tar.gz
ndk-gdb.py: Handle quoted paths in find_program
The quotes in os.environ['PATH'] need to be removed otherwise executables are not found.
Diffstat (limited to 'ndk-gdb.py')
-rwxr-xr-xndk-gdb.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ndk-gdb.py b/ndk-gdb.py
index 25e905d29..82a833967 100755
--- a/ndk-gdb.py
+++ b/ndk-gdb.py
@@ -39,7 +39,7 @@ except ImportError:
def find_program(program, extra_paths = []):
''' extra_paths are searched before PATH '''
- PATHS = extra_paths+os.environ['PATH'].split(os.pathsep)
+ PATHS = extra_paths+os.environ['PATH'].replace('"','').split(os.pathsep)
exts = ['']
if sys.platform.startswith('win'):
exts += ['.exe', '.bat', '.cmd']