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

use real paths for working directory and source directory

parent 6a4ccf4b
No related branches found
No related tags found
No related merge requests found
...@@ -142,7 +142,7 @@ class FluidResize(_fluid_particle_base): ...@@ -142,7 +142,7 @@ class FluidResize(_fluid_particle_base):
cmd_line_pars[k] = opt.m cmd_line_pars[k] = opt.m
self.pars_from_namespace(opt) self.pars_from_namespace(opt)
src_file = os.path.join( src_file = os.path.join(
opt.src_work_dir, os.path.realpath(opt.src_work_dir),
opt.src_simname + '_cvorticity_i{0:0>5x}'.format(opt.src_iteration)) opt.src_simname + '_cvorticity_i{0:0>5x}'.format(opt.src_iteration))
read_file = os.path.join( read_file = os.path.join(
self.work_dir, self.work_dir,
......
...@@ -45,7 +45,7 @@ class _base(object): ...@@ -45,7 +45,7 @@ class _base(object):
'ny' : 32, 'ny' : 32,
'nz' : 32} 'nz' : 32}
self.string_length = 512 self.string_length = 512
self.work_dir = work_dir self.work_dir = os.path.realpath(work_dir)
self.simname = simname self.simname = simname
return None return None
def cdef_pars(self): def cdef_pars(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment