@pushpalsdev/cli 1.1.46 → 1.1.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -248,11 +248,15 @@ export function resolveGenericPythonExecutorScriptPath(
|
|
|
248
248
|
config: GenericPythonExecutorConfig,
|
|
249
249
|
runtimeConfig: WorkerpalsRuntimeConfig,
|
|
250
250
|
): { scriptPath: string | null; candidates: string[] } {
|
|
251
|
-
const candidates = [
|
|
251
|
+
const candidates: string[] = [];
|
|
252
252
|
if (config.scriptSegments && config.scriptSegments.length > 0) {
|
|
253
253
|
const runtimeRoot = dirname(runtimeConfig.configDir);
|
|
254
|
+
candidates.push(join(runtimeRoot, "sandbox", ...config.scriptSegments));
|
|
255
|
+
candidates.push(config.scriptPath);
|
|
254
256
|
candidates.push(join(runtimeRoot, ...config.scriptSegments));
|
|
255
257
|
candidates.push(join(runtimeConfig.projectRoot, ...config.scriptSegments));
|
|
258
|
+
} else {
|
|
259
|
+
candidates.push(config.scriptPath);
|
|
256
260
|
}
|
|
257
261
|
|
|
258
262
|
const uniqueCandidates = uniqueStrings(candidates.map((candidate) => resolve(candidate)));
|