Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/paths.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeon Bottou <leon@bottou.org>2013-08-26 23:49:59 +0400
committerLeon Bottou <leon@bottou.org>2013-08-26 23:50:47 +0400
commitcc5ef04cc68e23b788344911f6dc01b9412b08fc (patch)
tree1a61aab5be5f8d7f51a7ce35acbcc065cd1e9dba
parent6da1c72df173e2c45e512ebaabe25edad7f8ec45 (diff)
fix for path.findprogram
-rw-r--r--init.lua.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.lua.in b/init.lua.in
index d72a482..b290d63 100644
--- a/init.lua.in
+++ b/init.lua.in
@@ -135,7 +135,7 @@ function findprogram(exe)
if type(x) == 'string' then return x end
k = 'Applications\\' .. exe .. '\\shell\\open\\command'
x = getregistryvalue('HKEY_CLASSES_ROOT', k, '')
- if type(x) == 'string' and x:match('"') then x = x:match('"[^"]+"') end
+ if type(x) == 'string' and x:match('^"') then x = x:match('[^"]+') end
if type(x) == 'string' then return x end
else
local path = os.getenv("PATH") or "."