Use a custom configuration dialogue and allow the user to specify

the application path as well as the Python path.
This commit is contained in:
Dave Page
2016-01-19 10:26:36 +00:00
parent 2acba32c86
commit 7c9347873f
8 changed files with 256 additions and 29 deletions
+3
View File
@@ -79,10 +79,13 @@ Server::~Server()
bool Server::Init()
{
QSettings settings;
// Find the webapp
QStringList paths;
paths.append("../web/"); // Windows/Linux source tree
paths.append("../../../../web/"); // Mac source tree (in the app bundle)
paths.append(settings.value("ApplicationPath").toString()); // System configured value
paths.append(""); // Should be last!
for (int i = 0; i < paths.size(); ++i)