mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-21 16:27:39 -06:00
Allow the ApplicationPath to be absolute.
This commit is contained in:
parent
4bde18685b
commit
58910c4b62
@ -218,7 +218,13 @@ bool Server::Init()
|
||||
|
||||
for (int i = 0; i < paths.size(); ++i)
|
||||
{
|
||||
QDir dir(QCoreApplication::applicationDirPath() + "/" + paths[i]);
|
||||
QDir dir;
|
||||
|
||||
if (paths[i].startsWith('/'))
|
||||
dir = paths[i];
|
||||
else
|
||||
dir = QCoreApplication::applicationDirPath() + "/" + paths[i];
|
||||
|
||||
m_appfile = dir.canonicalPath() + "/pgAdmin4.py";
|
||||
|
||||
if (QFile::exists(m_appfile))
|
||||
|
Loading…
Reference in New Issue
Block a user