Skip to content
Merged
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
3 changes: 2 additions & 1 deletion nipype/utils/profiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from __future__ import (print_function, division, unicode_literals,
absolute_import)

import os
import threading
from time import time
try:
Expand Down Expand Up @@ -40,7 +41,7 @@ def __init__(self, pid, freq=5, fname=None, python=True):

if fname is None:
fname = '.proc-%d_time-%s_freq-%0.2f' % (pid, time(), freq)
self._fname = fname
self._fname = os.path.abspath(fname)
self._logfile = open(self._fname, 'w')
self._freq = freq
self._python = python
Expand Down