整理远程模块
TDevOPsCICD / build-image (push) Waiting to run

This commit is contained in:
cheney
2026-06-16 16:40:34 +08:00
parent b46cddc7cf
commit e05ce19eac
14 changed files with 1154 additions and 365 deletions
+5 -1
View File
@@ -30,7 +30,11 @@ module.exports = class SystemConfig {
static getLocalKitPath(){
let path = "./"
if ( this.isWindows() ) {
path = require('path').dirname(require.main.filename)
if( require && require.main && require.main.filename ){
path = require('path').dirname(require.main.filename)
} else {
path = process.cwd()
}
} else {
path = require('path').dirname(process.execPath);
}