diff --git a/wetb/prepost/Simulations.py b/wetb/prepost/Simulations.py index b6bbd15cb246a9821f2eb33a94c0df5bc56e01ae..99fa1b1d4f549a06c63b2e02ccb9bbdffbaf9d20 100755 --- a/wetb/prepost/Simulations.py +++ b/wetb/prepost/Simulations.py @@ -1205,8 +1205,8 @@ def create_chunks_htc_pbs(cases, sort_by_values=['[Windspeed]'], ppn=20, pbs += 'pwd\n' pbs += 'echo "hard-linking all turb files into CPU dirs"\n' for k in range(ppn): - rpl = (os.path.join(sim_id, turb_dir_base), k) - pbs += 'find %s -iname *.bin -exec ln {} %s/{}\\;\n' % rpl + rpl = (os.path.relpath(os.path.join(sim_id, turb_dir_base)), k) + pbs += 'find %s -iname *.bin -exec ln {} %s/{} \\;\n' % rpl # ===================================================================== # finally we can run find+xargs!!!