Skip to content

Commit c017c6d

Browse files
authored
Merge pull request #2824 from nipy/fix/resource_monitor_path
FIX: Set ResourceMonitor.fname to an absolute path
2 parents 6310a14 + 84a1275 commit c017c6d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nipype/utils/profiler.py

+2-1
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)