mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-22 00:37:36 -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)
|
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";
|
m_appfile = dir.canonicalPath() + "/pgAdmin4.py";
|
||||||
|
|
||||||
if (QFile::exists(m_appfile))
|
if (QFile::exists(m_appfile))
|
||||||
|
Loading…
Reference in New Issue
Block a user