File tree Expand file tree Collapse file tree 12 files changed +22
-13
lines changed
src/main/java/fi/helsinki/cs/tmc/langs/python3 Expand file tree Collapse file tree 12 files changed +22
-13
lines changed Original file line number Diff line number Diff line change 22 <modelVersion >4.0.0</modelVersion >
33 <groupId >fi.helsinki.cs.tmc</groupId >
44 <artifactId >build-tools</artifactId >
5- <version >0.7.14 -SNAPSHOT</version >
5+ <version >0.7.15 -SNAPSHOT</version >
66 <name >build-tools</name >
77
88 <!-- Deploy to maven.testmycode.net/nexus -->
Original file line number Diff line number Diff line change 33
44 <groupId >fi.helsinki.cs.tmc</groupId >
55 <artifactId >tmc-langs</artifactId >
6- <version >0.7.14 -SNAPSHOT</version >
6+ <version >0.7.15 -SNAPSHOT</version >
77 <packaging >pom</packaging >
88 <name >tmc-langs</name >
99 <url >http://testmycode.net</url >
Original file line number Diff line number Diff line change 44 <parent >
55 <artifactId >tmc-langs</artifactId >
66 <groupId >fi.helsinki.cs.tmc</groupId >
7- <version >0.7.14 -SNAPSHOT</version >
7+ <version >0.7.15 -SNAPSHOT</version >
88 </parent >
99 <modelVersion >4.0.0</modelVersion >
1010
Original file line number Diff line number Diff line change 44 <parent >
55 <groupId >fi.helsinki.cs.tmc</groupId >
66 <artifactId >tmc-langs</artifactId >
7- <version >0.7.14 -SNAPSHOT</version >
7+ <version >0.7.15 -SNAPSHOT</version >
88 <relativePath >../</relativePath >
99 </parent >
1010 <properties >
Original file line number Diff line number Diff line change 44 <parent >
55 <groupId >fi.helsinki.cs.tmc</groupId >
66 <artifactId >tmc-langs</artifactId >
7- <version >0.7.14 -SNAPSHOT</version >
7+ <version >0.7.15 -SNAPSHOT</version >
88 </parent >
99
1010 <properties >
Original file line number Diff line number Diff line change 44 <parent >
55 <groupId >fi.helsinki.cs.tmc</groupId >
66 <artifactId >tmc-langs</artifactId >
7- <version >0.7.14 -SNAPSHOT</version >
7+ <version >0.7.15 -SNAPSHOT</version >
88 </parent >
99
1010 <properties >
Original file line number Diff line number Diff line change 44 <parent >
55 <groupId >fi.helsinki.cs.tmc</groupId >
66 <artifactId >tmc-langs</artifactId >
7- <version >0.7.14 -SNAPSHOT</version >
7+ <version >0.7.15 -SNAPSHOT</version >
88 </parent >
99
1010 <properties >
Original file line number Diff line number Diff line change 44 <parent >
55 <groupId >fi.helsinki.cs.tmc</groupId >
66 <artifactId >tmc-langs</artifactId >
7- <version >0.7.14 -SNAPSHOT</version >
7+ <version >0.7.15 -SNAPSHOT</version >
88 </parent >
99
1010 <properties >
Original file line number Diff line number Diff line change @@ -138,8 +138,17 @@ private String[] getAvailablePointsCommand() {
138138 }
139139
140140 private String [] getTestCommand () {
141- String [] command =
142- SystemUtils .IS_OS_WINDOWS ? new String [] {"py" , "-3" } : new String [] {"python3" };
141+ String [] command = null ;
142+ if (SystemUtils .IS_OS_WINDOWS ) {
143+ command = new String [] {"py" , "-3" };
144+ // Conda only works with the "python"-command on windows
145+ String condaPython = System .getenv ("CONDA_PYTHON_EXE" );
146+ if (condaPython != null && !condaPython .isEmpty () && Files .exists (Paths .get (condaPython ))) {
147+ command = new String [] {condaPython };
148+ }
149+ } else {
150+ command = new String [] {"python3" };
151+ }
143152 return ArrayUtils .addAll (command , "-m" , "tmc" );
144153 }
145154
Original file line number Diff line number Diff line change 44 <parent >
55 <groupId >fi.helsinki.cs.tmc</groupId >
66 <artifactId >tmc-langs</artifactId >
7- <version >0.7.14 -SNAPSHOT</version >
7+ <version >0.7.15 -SNAPSHOT</version >
88 </parent >
99
1010 <properties >
You can’t perform that action at this time.
0 commit comments