diff --git a/docs/source/demos/local_fleet_demo.rst b/docs/source/demos/local_fleet_demo.rst index 8e4e51390..126f42665 100644 --- a/docs/source/demos/local_fleet_demo.rst +++ b/docs/source/demos/local_fleet_demo.rst @@ -33,6 +33,7 @@ The first step is to launch the first Ursula on the network by running: .. code:: + $ cd scripts/local_fleet $ python run_lonely_ursula.py This will start an Ursula node: @@ -42,7 +43,7 @@ This will start an Ursula node: 3. Run a Local Fleet of Ursulas -Next, launch subsequent Ursulas, informing them of the first Ursula: +Next, launch subsequent Ursulas in another terminal, informing them of the first Ursula: .. code:: diff --git a/docs/source/guides/installation_guide.md b/docs/source/guides/installation_guide.md index 662a104a7..6d5fdffca 100644 --- a/docs/source/guides/installation_guide.md +++ b/docs/source/guides/installation_guide.md @@ -51,7 +51,7 @@ Here is the recommended procedure for setting up `nucypher` in this fashion: $(nucypher-venv) ``` - ``` note:: Successful virtualenv activation is indicated by '(nucypher-venv)$' prepending your console's prompt + ``` note:: Successful virtualenv activation is indicated by '(nucypher-venv)$' prepended to your console's prompt ``` diff --git a/nucypher/cli/config.py b/nucypher/cli/config.py index 33236450f..29d61c52a 100644 --- a/nucypher/cli/config.py +++ b/nucypher/cli/config.py @@ -19,13 +19,11 @@ along with nucypher. If not, see . import functools import os +from distutils.util import strtobool import click from twisted.logger import Logger -import collections -from distutils.util import strtobool - from nucypher.characters.control.emitters import StdoutEmitter, JSONRPCStdoutEmitter from nucypher.config.constants import NUCYPHER_SENTRY_ENDPOINT from nucypher.network.middleware import RestMiddleware @@ -37,7 +35,7 @@ def get_env_bool(var_name: str, default: bool) -> bool: if var_name in os.environ: # TODO: which is better: to fail on an incorrect envvar, or to use the default? # Currently doing the former. - return strtoobool(os.environ[var_name]) + return strtobool(os.environ[var_name]) else: return default diff --git a/scripts/local_fleet/run_local_fleet.sh b/scripts/local_fleet/run_local_fleet.sh index 87802ec16..121fdc4a3 100755 --- a/scripts/local_fleet/run_local_fleet.sh +++ b/scripts/local_fleet/run_local_fleet.sh @@ -9,7 +9,9 @@ mkdir /tmp/ursulas-logs # Set PATH export PATH=~/.local/bin:$PATH -source ~/.bashrc +if [ -f ~/.bashrc ]; then + source ~/.bashrc +fi # Disable logging export NUCYPHER_SENTRY_LOGS=0