File tree 1 file changed +7
-3
lines changed
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 8
8
SettingsData::SettingsData ()
9
9
{
10
10
QString pythonHome;
11
+ QString appDirPath = QCoreApplication::applicationDirPath ();
12
+ if (!appDirPath.isEmpty ()) {
13
+ appDirPath += " /" ;
14
+ }
11
15
#ifdef Q_OS_LINUX
12
- pythonHome = QCoreApplication::applicationDirPath ()+ " / ../python" ;
16
+ pythonHome = appDirPath+ " ../python" ;
13
17
#endif
14
18
#ifdef Q_OS_MACOS
15
- pythonHome = QCoreApplication::applicationDirPath ()+ " / ../Frameworks/python" ;
19
+ pythonHome = appDirPath+ " ../Frameworks/python" ;
16
20
#endif
17
21
#ifdef Q_OS_WIN
18
- pythonHome = QCoreApplication::applicationDirPath () ;
22
+ pythonHome = appDirPath ;
19
23
#endif
20
24
QString pythonHomeCanonical = QDir (pythonHome).canonicalPath ();
21
25
// The canonical path will be empty if it doesn't exist, so we'll fall back on the base path for easier debugging
You can’t perform that action at this time.
0 commit comments