Skip to content

Commit

Permalink
driver: Try and add project to Tesla config.
Browse files Browse the repository at this point in the history
  • Loading branch information
bhelyer committed Nov 25, 2016
1 parent c5c652b commit e8c335a
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/battery/driver.volt
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,18 @@ Normal usecase when standing in a project directory.
foreach (i, arg; gen.genVoltaArgs(testProject)) {
ofs.writef("\"%s\", ", slashEscape(arg));
}
ofs.writefln("\"%s\", \"%s\"]}\n }\n}", rtpath, wattpath);
ofs.writef("\"%s\", \"%s\"]}", rtpath, wattpath);
exe := cast(Exe)testProject;
if (exe !is null) {
exepath := slashEscape("." ~ dirSeparator ~ exe.bin);
version (Windows) {
if (!endsWith(exepath, ".exe")) {
exepath ~= ".exe";
}
}
ofs.writefln(",\n \"%s\": {\"path\": \"%s\", \"args\":[]}", exe.name, exepath);
}
ofs.writefln(" }\n}");
ofs.flush();
ofs.close();
}
Expand Down

0 comments on commit e8c335a

Please sign in to comment.