Skip to content

Commit 84a1275

Browse files
authored
FIX: Set ResourceMonitor.fname to an absolute path
Fixes #2764.
1 parent ab0bba7 commit 84a1275

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nipype/utils/profiler.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from __future__ import (print_function, division, unicode_literals,
88
absolute_import)
99

10+
import os
1011
import threading
1112
from time import time
1213
try:
@@ -40,7 +41,7 @@ def __init__(self, pid, freq=5, fname=None, python=True):
4041

4142
if fname is None:
4243
fname = '.proc-%d_time-%s_freq-%0.2f' % (pid, time(), freq)
43-
self._fname = fname
44+
self._fname = os.path.abspath(fname)
4445
self._logfile = open(self._fname, 'w')
4546
self._freq = freq
4647
self._python = python

0 commit comments

Comments
 (0)