(ctx *gcp.Context)
| 722 | |
| 723 | separator := ":" |
| 724 | if strings.HasPrefix(targetPlatform, "windows") { |
| 725 | separator = ";" |
| 726 | } |
| 727 | |
| 728 | // We set PYTHONPATH so that the python interpreter can find the dependencies |
| 729 | // in the target directory. We also add the application root to PYTHONPATH so |
| 730 | // that the application can import modules from the root. |
| 731 | l.LaunchEnvironment.Override("PYTHONPATH", targetDir+separator+".") |
| 732 | l.SharedEnvironment.Override("PYTHONPATH", targetPath+string(os.PathListSeparator)+ctx.ApplicationRoot()) |
| 733 | |
| 734 | return installRequirementsToTarget(ctx, targetPath, reqs, cmdBuilder) |
| 735 | } |
| 736 |
no test coverage detected