Spaces Data
Minimal test - lines (369, 387)
path: .spaces[0].spaces[11].metrics.mi.mi_visual_studio
old: 53.613240651793575
new: 52.55952410864408
path: .spaces[0].spaces[11].metrics.mi.mi_original
old: 91.678641514567
new: 89.87678622578137
path: .spaces[0].spaces[11].metrics.mi.mi_sei
old: 75.21672693050196
new: 78.35576470069176
path: .spaces[0].spaces[11].metrics.loc.sloc
old: 17.0
new: 19.0
path: .spaces[0].spaces[11].metrics.loc.cloc
old: 1.0
new: 2.0
path: .spaces[0].spaces[11].metrics.loc.blank
old: 3.0
new: 4.0
Code
def _write_launch_files(self, launch_dir):
bin_dir = os.path.join(self.environment.topobjdir, "dist")
# TODO Improve binary detection
if self._macbundle:
exe_path = os.path.join(bin_dir, self._macbundle, "Contents/MacOS")
else:
exe_path = os.path.join(bin_dir, "bin")
exe_path = os.path.join(exe_path, self._appname + self._bin_suffix)
main_gecko_launch = os.path.join(launch_dir, "gecko.launch")
with open(main_gecko_launch, "w") as fh:
launch = GECKO_LAUNCH_CONFIG_TEMPLATE
launch = launch.replace("@LAUNCH_PROGRAM@", exe_path)
launch = launch.replace("@LAUNCH_ARGS@", "-P -no-remote")
fh.write(launch)
# TODO Add more launch configs (and delegate calls to mach)