Resolve the .env

This commit is contained in:
henryruhs
2024-09-22 20:33:31 +02:00
parent 63702a29c4
commit ed96dd5805
4 changed files with 13 additions and 7 deletions
+6 -4
View File
@@ -1,3 +1,5 @@
const path = require('path');
function install(kernel)
{
const { platform, gpu } = kernel;
@@ -45,7 +47,7 @@ module.exports = async kernel =>
message: 'conda install conda-forge::openvino=2024.3.0 --yes',
conda:
{
path: '.env'
path: path.resolve(__dirname, '.env')
}
}
},
@@ -57,7 +59,7 @@ module.exports = async kernel =>
message: 'conda install conda-forge::cuda-runtime=12.4.1 cudnn=9.2.1.18 --yes',
conda:
{
path: '.env'
path: path.resolve(__dirname, '.env')
}
}
},
@@ -69,7 +71,7 @@ module.exports = async kernel =>
message: 'pip install tensorrt==10.4.0 --extra-index-url https://pypi.nvidia.com --yes',
conda:
{
path: '.env'
path: path.resolve(__dirname, '.env')
}
}
},
@@ -85,7 +87,7 @@ module.exports = async kernel =>
},
conda:
{
path: '.env'
path: path.resolve(__dirname, '.env')
}
}
},
+1 -1
View File
@@ -4,7 +4,7 @@ module.exports = async kernel =>
{
const menu = [];
if (!await kernel.exists(__dirname, '.env'))
if (!await kernel.exists(path.resolve(__dirname, '.env')))
{
menu.push(
{
+3 -1
View File
@@ -1,3 +1,5 @@
const path = require('path');
module.exports = () =>
{
const config =
@@ -15,7 +17,7 @@ module.exports = () =>
method: 'fs.rm',
params:
{
'path': '.env'
path: path.resolve(__dirname, '.env')
}
}
]
+3 -1
View File
@@ -1,3 +1,5 @@
const path = require('path');
module.exports = () =>
{
const config =
@@ -27,7 +29,7 @@ module.exports = () =>
path: 'facefusion',
conda:
{
path: '.env'
path: path.resolve(__dirname, '.env')
},
on:
[