Skip to content

Commit

Permalink
Resolve the .env
Browse files Browse the repository at this point in the history
  • Loading branch information
henryruhs committed Sep 22, 2024
1 parent 63702a2 commit ed96dd5
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
10 changes: 6 additions & 4 deletions install.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
const path = require('path');

function install(kernel)
{
const { platform, gpu } = kernel;
Expand Down Expand Up @@ -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')
}
}
},
Expand All @@ -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')
}
}
},
Expand All @@ -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')
}
}
},
Expand All @@ -85,7 +87,7 @@ module.exports = async kernel =>
},
conda:
{
path: '.env'
path: path.resolve(__dirname, '.env')
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
{
Expand Down
4 changes: 3 additions & 1 deletion reset.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
const path = require('path');

module.exports = () =>
{
const config =
Expand All @@ -15,7 +17,7 @@ module.exports = () =>
method: 'fs.rm',
params:
{
'path': '.env'
path: path.resolve(__dirname, '.env')
}
}
]
Expand Down
4 changes: 3 additions & 1 deletion run.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
const path = require('path');

module.exports = () =>
{
const config =
Expand Down Expand Up @@ -27,7 +29,7 @@ module.exports = () =>
path: 'facefusion',
conda:
{
path: '.env'
path: path.resolve(__dirname, '.env')
},
on:
[
Expand Down

0 comments on commit ed96dd5

Please sign in to comment.