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

github.com/torch/torch7.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeon Bottou <leon@bottou.org>2013-11-05 06:43:22 +0400
committerRonan Collobert <ronan@collobert.com>2014-02-14 14:39:46 +0400
commit859a9f56982c41dbeb0e9caadcbc6522597a0c15 (patch)
tree984fea04f5be4dccd06ec7ccc7aa13579c69bb0d /init.lua
parent67b7b068170136e107ad15fa982025c1ec5ccc27 (diff)
fixed torch.packageLuaPath
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index 0f4db4a..34f568c 100644
--- a/init.lua
+++ b/init.lua
@@ -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