Take path to pythons and envs from variables
authorDmitry Trofimov <dmitry.trofimov@jetbrains.com>
Thu, 21 Apr 2016 21:42:00 +0000 (23:42 +0200)
committerDmitry Trofimov <dmitry.trofimov@jetbrains.com>
Thu, 21 Apr 2016 21:44:40 +0000 (23:44 +0200)
python/setup-test-environment/build.gradle

index 575c7c220ce4522d5f67cc5b5ee7aa7fcced4925..36bcc485a4a59dc8a8c683950927c37d665502fe 100644 (file)
@@ -6,8 +6,8 @@ plugins {
 
 
 envs {
-  bootstrapDirectory = new File(buildDir, 'pythons')
-  envsDirectory = new File(buildDir, 'envs')
+  bootstrapDirectory = new File(System.getenv().getOrDefault("PYCHARM_PYTHONS", new File(buildDir, 'pythons').path))
+  envsDirectory = new File(System.getenv().getOrDefault("PYCHARM_PYTHON_ENVS", new File(buildDir, 'envs').path))
   minicondaVersion = 'latest'
   packages = ["pip", "setuptools"]
   _64Bits = true