Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get_auditlogpath/get_auditdirpath/get_wflogpath return absolute paths #44

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions sciluigi/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,31 +40,31 @@ def _ensure_timestamp(self):

def get_wflogpath(self):
'''
Get the path to the workflow-speicfic log file.
Get the path to the workflow-specific log file.
'''
if self._wflogpath == '':
self._ensure_timestamp()
clsname = self.__class__.__name__.lower()
logpath = 'log/workflow_' + clsname + '_started_{t}.log'.format(t=self._wfstart)
self._wflogpath = logpath
self._wflogpath = os.path.abspath(logpath)
return self._wflogpath

def get_auditdirpath(self):
'''
Get the path to the workflow-speicfic audit trail directory.
Get the path to the workflow-specific audit trail directory.
'''
self._ensure_timestamp()
clsname = self.__class__.__name__.lower()
audit_dirpath = 'audit/.audit_%s_%s' % (clsname, self._wfstart)
audit_dirpath = os.path.abspath('audit/.audit_%s_%s' % (clsname, self._wfstart))
return audit_dirpath

def get_auditlogpath(self):
'''
Get the path to the workflow-speicfic audit trail file.
Get the path to the workflow-specific audit trail file.
'''
self._ensure_timestamp()
clsname = self.__class__.__name__.lower()
audit_dirpath = 'audit/workflow_%s_started_%s.audit' % (clsname, self._wfstart)
audit_dirpath = os.path.abspath('audit/workflow_%s_started_%s.audit' % (clsname, self._wfstart))
return audit_dirpath

def add_auditinfo(self, infotype, infolog):
Expand Down