Skip to content
Snippets Groups Projects
Commit f783eb53 authored by Nicola Vigano's avatar Nicola Vigano
Browse files

fixed relative path for DCT directory in python scripts


Signed-off-by: default avatarNicola Vigano <nicola.vigano@esrf.fr>

git-svn-id: https://svn.code.sf.net/p/dct/code/trunk@149 4c865b51-4357-4376-afb4-474e03ccb993
parent 2283b16d
No related branches found
No related tags found
No related merge requests found
...@@ -13,7 +13,7 @@ class FunctionsBuilder(object): ...@@ -13,7 +13,7 @@ class FunctionsBuilder(object):
# 'condor_make' # Disabled since we moved to OAR # 'condor_make' # Disabled since we moved to OAR
] ]
def __init__(self, indir = os.path.join(os.getenv('HOME'), 'matlabDCT'), def __init__(self, indir = os.getcwd(),
script_dir = os.path.join(os.getenv('HOME'), 'graintracking', 'scripts'), script_dir = os.path.join(os.getenv('HOME'), 'graintracking', 'scripts'),
bin_dir = os.path.join(os.getenv('HOME'), 'graintracking', 'bin', os.getenv('CPU'))): bin_dir = os.path.join(os.getenv('HOME'), 'graintracking', 'bin', os.getenv('CPU'))):
self.indir = indir self.indir = indir
...@@ -146,7 +146,7 @@ end ...@@ -146,7 +146,7 @@ end
def compileFuncs(self, mfiles, force): def compileFuncs(self, mfiles, force):
print("Calling matlab..") print("Calling matlab..")
cmd = ['matlab2011b'] cmd = ['matlab']
cmd = cmd + ['-nodesktop', '-nosplash', '-r'] cmd = cmd + ['-nodesktop', '-nosplash', '-r']
args = '' args = ''
if force is True: if force is True:
......
...@@ -13,7 +13,7 @@ class MexBuilder(object): ...@@ -13,7 +13,7 @@ class MexBuilder(object):
file_extensions = [ '*.c', '*.cxx', '*.cpp' ] file_extensions = [ '*.c', '*.cxx', '*.cpp' ]
def __init__(self, compiler_path, def __init__(self, compiler_path,
indir = os.path.join(os.getenv('HOME'), 'matlabDCT')): indir = os.getcwd()):
self.indir = indir self.indir = indir
self.compiler_path = compiler_path self.compiler_path = compiler_path
self.c_files = { } self.c_files = { }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment