From 2b2fa1530ebc9bb314dd8b3ed9376d0c004668f5 Mon Sep 17 00:00:00 2001 From: Wouter Peters <wouter.peters@wur.nl> Date: Tue, 7 Jun 2011 07:29:31 +0000 Subject: [PATCH] rcfile name will be stripped of leading path before being used in rest of code --- da/tools/initexit.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/da/tools/initexit.py b/da/tools/initexit.py index a878ea6f..cbcf9494 100755 --- a/da/tools/initexit.py +++ b/da/tools/initexit.py @@ -313,7 +313,11 @@ class CycleControl(dict): # expand jobrcfilename to include exec dir from now on. - self['jobrcfilename'] = os.path.join(self['dir.exec'],self['jobrcfilename']) + # First strip current leading path from filename + + strippedname = os.path.split(self['jobrcfilename'])[-1] + + self['jobrcfilename'] = os.path.join(self['dir.exec'],strippedname) self.ParseTimes() -- GitLab