mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-09-11 22:02:06 +00:00
fix #309
This commit is contained in:
parent
ccc131233b
commit
11cd6a47b1
@ -1099,10 +1099,13 @@ const boost::filesystem::path &GetDataDir(bool fNetSpecific)
|
|||||||
boost::filesystem::path GetHTMLDir()
|
boost::filesystem::path GetHTMLDir()
|
||||||
{
|
{
|
||||||
namespace fs = boost::filesystem;
|
namespace fs = boost::filesystem;
|
||||||
|
fs::path sysHtmlDir("/usr/share/twister/html");
|
||||||
fs::path path;
|
fs::path path;
|
||||||
|
|
||||||
if (mapArgs.count("-htmldir")) {
|
if (mapArgs.count("-htmldir")) {
|
||||||
path = fs::system_complete(mapArgs["-htmldir"]);
|
path = fs::system_complete(mapArgs["-htmldir"]);
|
||||||
|
} else if (fs::is_directory(sysHtmlDir)) {
|
||||||
|
path = sysHtmlDir;
|
||||||
} else {
|
} else {
|
||||||
path = GetDataDir() / "html";
|
path = GetDataDir() / "html";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user