Files
crawlab/core/task/handler/runner.go
Marvin Zhang 7e3378c7ef refactor: improve environment variable configuration in task runner
- Updated the configurePythonPath and configureNodePath methods to append environment variables directly to r.cmd.Env instead of using os.Setenv, enhancing the clarity and maintainability of the environment setup.
- Ensured the PATH variable is updated correctly by checking for existing paths before appending, preventing duplicates.
- Moved default environment variable initialization to the configureEnv method for better organization.
2025-04-15 22:52:33 +08:00

32 KiB