Skip to content

Commit

Permalink
fixed linting
Browse files Browse the repository at this point in the history
  • Loading branch information
mtitov committed Feb 27, 2024
1 parent 75486a3 commit 33facef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/radical/entk/tools/darshan.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ def cache_darshan_env(darshan_runtime_root: Optional[str] = None,
global _darshan_runtime_root

if _darshan_runtime_root is None:
if (darshan_runtime_root
and not darshan_runtime_root.startswith('$')
and not darshan_runtime_root.startswith('/')):
if (darshan_runtime_root and
not darshan_runtime_root.startswith('$') and
not darshan_runtime_root.startswith('/')):
raise RuntimeError('Darshan root directory should be set with '
'either env variable or an absolute path '
f'(provided path: {darshan_runtime_root})')
Expand Down

0 comments on commit 33facef

Please sign in to comment.