From c9e42dc0f501f3b10bbf6948e7a10e3e4f2839c0 Mon Sep 17 00:00:00 2001 From: Cristian C Lalescu <Cristian.Lalescu@ds.mpg.de> Date: Mon, 18 Mar 2019 17:15:49 +0100 Subject: [PATCH] fix executable location --- bfps/_code.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bfps/_code.py b/bfps/_code.py index db5e275c..72a102b3 100644 --- a/bfps/_code.py +++ b/bfps/_code.py @@ -193,7 +193,7 @@ class _code(_base): def compile_code( self, no_debug = True): - if os.path.exists(self.name): + if os.path.exists(os.path.join(self.work_dir, self.name)): return 0 # compile code build_dir = 'bfps_build_' + self.name @@ -236,7 +236,7 @@ class _code(_base): current_environment['VERBOSE'] = '1' make_result = subprocess.check_call(['make'], env = current_environment) 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 def set_host_info( self, -- GitLab