Skip to content

Commit

Permalink
Handle wrapping env path on code side
Browse files Browse the repository at this point in the history
  • Loading branch information
dcdenu4 committed Nov 12, 2024
1 parent 43a79a5 commit 80c9a89
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions workbench/src/main/setupAddRemovePlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export function setupAddPlugin() {
pyname: pluginPyName,
type: 'plugin',
source: pluginURL,
env: `\"{envPath}\"`,
env: envPath,
}
);
logger.info('successfully added plugin');
Expand All @@ -81,7 +81,7 @@ export function setupRemovePlugin() {
const env = settingsStore.get(`plugins.${pluginID}.env`);
const mamba = settingsStore.get('mamba');
execSync(
`${mamba} remove --yes --prefix ${env} --all`,
`${mamba} remove --yes --prefix "${env}" --all`,
{ stdio: 'inherit' }
);
// Delete the plugin's data from storage
Expand Down
2 changes: 1 addition & 1 deletion workbench/src/main/setupInvestHandlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export function setupInvestRunHandlers() {
cmd = settingsStore.get('mamba');
cmdArgs = [
'run',
`--prefix ${settingsStore.get(`plugins.${modelRunName}.env`)}`,
`--prefix "${settingsStore.get(`plugins.${modelRunName}.env`)}"`,
'--live-stream',
'invest',
LOGLEVELMAP[loggingLevel],
Expand Down

0 comments on commit 80c9a89

Please sign in to comment.