diff options
author | Leon Bottou <leon@bottou.org> | 2013-11-05 06:43:22 +0400 |
---|---|---|
committer | Ronan Collobert <ronan@collobert.com> | 2014-02-14 14:39:46 +0400 |
commit | 859a9f56982c41dbeb0e9caadcbc6522597a0c15 (patch) | |
tree | 984fea04f5be4dccd06ec7ccc7aa13579c69bb0d /init.lua | |
parent | 67b7b068170136e107ad15fa982025c1ec5ccc27 (diff) |
fixed torch.packageLuaPath
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -12,7 +12,7 @@ function torch.packageLuaPath(name) end return ret end - for path in string.gmatch(package.path, "(.-);") do + for path in string.gmatch(package.path, "[^;]+") do path = string.gsub(path, "%?", name) local f = io.open(path) if f then |