diff --git a/docs/api/cpp/doomGame.md b/docs/api/cpp/doomGame.md index b6a8a3581..86ae7c929 100644 --- a/docs/api/cpp/doomGame.md +++ b/docs/api/cpp/doomGame.md @@ -121,7 +121,8 @@ Checks if the game is in replay mode. | Python | `set_action(actions: list | tuple | ndarray [float]) -> None` | Sets the player's action for the next tics. -Each value corresponds to a button previosuly specified with [`addAvailableButton`](#addavailablebutton), or [`setAvailableButtons`](#setavailablebuttons) methods, +Each value corresponds to a button previously specified +with [`addAvailableButton`](#addavailablebutton), or [`setAvailableButtons`](#setavailablebuttons) methods, or in the configuration file (in order of appearance). diff --git a/docs/api/python/doomGame.md b/docs/api/python/doomGame.md index 6f25909c1..7c51615c1 100644 --- a/docs/api/python/doomGame.md +++ b/docs/api/python/doomGame.md @@ -59,12 +59,13 @@ DoomGame is the main object of the ViZDoom library, representing a single instan .. autofunction:: vizdoom.DoomGame.get_game_variable ``` -## Game Arguments methods +## Game arguments methods ```{eval-rst} .. autofunction:: vizdoom.DoomGame.set_game_args .. autofunction:: vizdoom.DoomGame.add_game_args .. autofunction:: vizdoom.DoomGame.clear_game_args +.. autofunction:: vizdoom.DoomGame.get_game_args ``` ## Reward methods diff --git a/setup.py b/setup.py index 5e7a8e0cc..017746a0b 100644 --- a/setup.py +++ b/setup.py @@ -7,10 +7,13 @@ from multiprocessing import cpu_count from setuptools import Distribution, setup -try: # for backwards compatibility with setuptools version < 65 - from setuptools.command.build import build + + +try: # for backwards compatibility with setuptools version < 65 + from setuptools.command.build import build except ImportError: from distutils.command.build import build + from setuptools.command.install import install from wheel.bdist_wheel import bdist_wheel diff --git a/src/lib_python/ViZDoomMethodsDocstrings.h b/src/lib_python/ViZDoomMethodsDocstrings.h index 080861b0c..76b22707b 100644 --- a/src/lib_python/ViZDoomMethodsDocstrings.h +++ b/src/lib_python/ViZDoomMethodsDocstrings.h @@ -43,7 +43,8 @@ See also:)DOCSTRING"; const char *isReplayingEpisode = R"DOCSTRING(Checks if the game is in replay mode.)DOCSTRING"; const char *setAction = R"DOCSTRING(Sets the player's action for the next tics. -Each value corresponds to a button previosuly specified with `addAvailableButton` methods, +Each value corresponds to a button previously specified +with `addAvailableButton` methods, or in the configuration file (in order of appearance).)DOCSTRING"; const char *advanceAction = R"DOCSTRING(Processes the specified number of tics. If `updateState` is set,