File tree Expand file tree Collapse file tree 2 files changed +17
-2
lines changed
Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -10,21 +10,29 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1010### Added
1111
1212* RELAP-5 Plugin
13+ * MCNP Plugin
14+ * Serpent Plugin
1315
1416### Changes
1517
1618* The ` Plugin.__call__ ` method now allows arbitrary keyword arguments to be
1719 passed on to the ` Plugin.run ` method
1820* The ` Database ` class now acts like a sequence
1921* Database directory names use random strings to avoid clashes when multiple
20- instances of WATTS are running simulataneously
22+ instances of WATTS are running simultaneously
2123* File template-based plugins now accept an ` extra_template_inputs ` argument
2224 indicating extra template files that should be rendered
2325* The ` PluginOpenMC ` class now takes an optional ` function ` argument that
2426 specifies an arbitrary execution sequence
2527* All plugins consistently use an attribute ` executable ` for specifying the path
2628 to an executable
2729
30+ ### Fixed
31+
32+ * Use non-blocking pipe when capturing output to avoid some plugins stalling.
33+ * Avoid use of Unix-specific features in the Python standard library when
34+ running on Windows
35+
2836## [ 0.2.0]
2937
3038### Added
Original file line number Diff line number Diff line change 33
44from contextlib import contextmanager
55import errno
6- import fcntl
76import os
87import platform
98import select
1211import tempfile
1312from typing import Union
1413
14+ if sys .platform != 'win32' :
15+ import fcntl
16+
1517# Type for arguments that accept file paths
1618PathLike = Union [str , bytes , os .PathLike ]
1719
@@ -93,6 +95,11 @@ def run(args):
9395 Based on https://stackoverflow.com/a/12272262 and
9496 https://stackoverflow.com/a/7730201
9597 """
98+ # Windows doesn't support select.select and fcntl module so just default to
99+ # using subprocess.run. In this case, show_output/show_stderr won't work.
100+ if sys .platform == 'win32' :
101+ subprocess .run (args )
102+ return
96103
97104 # Helper function to add the O_NONBLOCK flag to a file descriptor
98105 def make_async (fd ):
You can’t perform that action at this time.
0 commit comments