diff --git a/openmc/executor.py b/openmc/executor.py index 758604c91e..aacc48b3fa 100644 --- a/openmc/executor.py +++ b/openmc/executor.py @@ -1,9 +1,9 @@ from collections.abc import Iterable from numbers import Integral +import os import subprocess import openmc -from openmc.checkvalue import PathLike from .plots import _get_plot_image @@ -74,7 +74,7 @@ def _process_CLI_arguments(volume=False, geometry_debug=False, particles=None, if event_based: args.append('-e') - if isinstance(restart_file, PathLike.__args__): + if isinstance(restart_file, (str, os.PathLike)): args += ['-r', str(restart_file)] if tracks: