Skip to content

Commit

Permalink
This should fix the issue
Browse files Browse the repository at this point in the history
  • Loading branch information
KenCorma committed Oct 29, 2024
1 parent 4aca6b1 commit 29b0e04
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/pythonEnvironment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,19 @@ export class PythonEnvironment {
path.join(this.appResourcesPath, 'output', fileName),
path.join(this.pythonRootPath, fileName)
);
await fsPromises.chmod( path.join(this.pythonRootPath, fileName) ,'755');
});
try {
// This is a cleanup step, and is non critical if failed.
//await fsPromises.rm(path.join(this.appResourcesPath, 'output'), { recursive: true, force: true });
} catch (error) {
null;
}
const sleep = (ms: number) => new Promise(resolve => setTimeout(resolve, ms))
await sleep(2000);
}
else
{
try {
// This is a cleanup step, and is non critical if failed.
await fsPromises.rm(path.join(this.appResourcesPath, 'output'), { recursive: true, force: true });
Expand Down

0 comments on commit 29b0e04

Please sign in to comment.