| 143 | struct Template |
| 144 | { |
| 145 | static QString scriptsPath() |
| 146 | { |
| 147 | QString cacheChildPath = QCoreApplication::applicationName(); |
| 148 | QDir dir(QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation)); |
| 149 | dir.cdUp(); |
| 150 | if (!dir.cd(cacheChildPath)) { |
| 151 | dir.mkdir(cacheChildPath); |
| 152 | dir.cd(cacheChildPath); |
| 153 | } |
| 154 | |
| 155 | qInfo() << dir.path(); |
| 156 | QString scriptChildPath = "scripts"; |
| 157 | if (!dir.cd(scriptChildPath)) { |
| 158 | dir.mkdir(scriptChildPath); |
| 159 | dir.cd(scriptChildPath); |
| 160 | } |
| 161 | qInfo() << dir.path(); |
| 162 | return dir.path(); |
| 163 | } |
| 164 | |
| 165 | static QString scriptsPathFrom(Tools::PerformanceType pt) |
| 166 | { |