MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / scriptsPath

Method scriptsPath

src/tools/performancedapter/tools.cpp:145–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143struct 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 {

Callers

nothing calls this directly

Calls 1

pathMethod · 0.45

Tested by

no test coverage detected