Skip to content
Snippets Groups Projects
Commit c9e42dc0 authored by Cristian Lalescu's avatar Cristian Lalescu
Browse files

fix executable location

parent 9049bb26
No related branches found
No related tags found
1 merge request!23WIP: Feature/use cmake
Pipeline #45468 failed
...@@ -193,7 +193,7 @@ class _code(_base): ...@@ -193,7 +193,7 @@ class _code(_base):
def compile_code( def compile_code(
self, self,
no_debug = True): no_debug = True):
if os.path.exists(self.name): if os.path.exists(os.path.join(self.work_dir, self.name)):
return 0 return 0
# compile code # compile code
build_dir = 'bfps_build_' + self.name build_dir = 'bfps_build_' + self.name
...@@ -236,7 +236,7 @@ class _code(_base): ...@@ -236,7 +236,7 @@ class _code(_base):
current_environment['VERBOSE'] = '1' current_environment['VERBOSE'] = '1'
make_result = subprocess.check_call(['make'], env = current_environment) make_result = subprocess.check_call(['make'], env = current_environment)
os.chdir('..') os.chdir('..')
shutil.copy2(build_dir + '/' + self.name, self.name) shutil.copy2(os.path.join(build_dir, self.name), os.path.join(self.work_dir, self.name))
return make_result return make_result
def set_host_info( def set_host_info(
self, self,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment