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

github.com/torch/qtlua.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeon Bottou <leon@bottou.org>2013-11-15 05:36:25 +0400
committerLeon Bottou <leon@bottou.org>2013-11-15 05:53:22 +0400
commitba4bb32aaf1ab40d4d8c03267bf40493f0c84120 (patch)
treedfe448320b05d6e9279b49c0fd99e457d4ced2d1
parentbd43b33585126202bbc66d3a387344854e9f4c41 (diff)
more robust to broken paths package
-rw-r--r--packages/qtide/init.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/packages/qtide/init.lua b/packages/qtide/init.lua
index ae17557..dc5b2e0 100644
--- a/packages/qtide/init.lua
+++ b/packages/qtide/init.lua
@@ -143,14 +143,15 @@ end
local function locate_help_files()
local appname = qt.qApp.applicationName:tostring()
- local index1 = paths.concat(paths.install_html, appname:lower(), "index.html")
- local index2 = paths.concat(paths.install_html,"index.html")
+ local html = paths.install_html or "."
+ local index1 = paths.concat(html, appname:lower(), "index.html")
+ local index2 = paths.concat(html,"index.html")
if index1 and paths.filep(index1) then
return qt.QUrl.fromlocalfile(index1)
elseif index2 and paths.filep(index2) then
return qt.QUrl.fromlocalfile(index2)
else
- return qt.QUrl("http://torch5.sourceforge.net/manual/index.html")
+ return qt.QUrl("http://torch.ch/#packages")
end
end