Skip to content

Commit 0ed5152

Browse files
committed
make the download directories paraametric wherever they are used
1 parent 7a64bf0 commit 0ed5152

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/main/java/com/neuronrobotics/bowlerstudio/scripting/DownloadManager.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,9 @@
6969
import net.sf.sevenzipjbinding.impl.RandomAccessFileInStream;
7070

7171
public class DownloadManager {
72+
private static String STUDIO_INSTALL = "BowlerStudioInstall";
7273
private static String editorsURL = "https://github.com/CommonWealthRobotics/ExternalEditorsBowlerStudio.git";
73-
private static String bindir = System.getProperty("user.home") + delim()+"bin"+delim()+"BowlerStudioInstall"+delim();
74+
private static String bindir = System.getProperty("user.home") + delim()+"bin"+delim()+getSTUDIO_INSTALL()+delim();
7475
private static int ev = 0;
7576
private static String cmd = "";
7677
private static IDownloadManagerEvents downloadEvents = new IDownloadManagerEvents() {
@@ -1045,5 +1046,11 @@ public static void setDownloadEvents(IDownloadManagerEvents de) {
10451046
if(downloadEvents!=null)
10461047
downloadEvents = de;
10471048
}
1049+
public static String getSTUDIO_INSTALL() {
1050+
return STUDIO_INSTALL;
1051+
}
1052+
public static void setSTUDIO_INSTALL(String sTUDIO_INSTALL) {
1053+
STUDIO_INSTALL = sTUDIO_INSTALL;
1054+
}
10481055

10491056
}

0 commit comments

Comments
 (0)