Skip to content

Commit

Permalink
do not use os.getcwd - do not dereference symlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
mfiers committed Jun 25, 2012
1 parent 686a858 commit 697e922
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/python/moa/jobConf.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def _checkJobId(self):

jobid = self['jobid']
if jobid != 'unset': return
name = os.path.basename(os.getcwd())
name = os.path.basename(moa.utils.getCwd())
name = re.sub("^[0-9]+\.+", "", name)
l.debug("Setting job id to '%s'" % name)
self['jobid'] = name
Expand Down

0 comments on commit 697e922

Please sign in to comment.