Set the deploy dir before loading config.
Means `Config.REQUIRE_PACKAGES` can define a path relative to the deploy
directory.
@@ -305,6 +305,9 @@ def _main(
# Create an empty/unitialised state object
state = State()
+ # Set the deploy directory
+ state.deploy_dir = deploy_dir
+
pseudo_state.set(state)
if verbosity > 0:
@@ -466,9 +469,6 @@ def _main(
print_inventory(state)
_exit()
- # Set the deploy directory
- state.deploy_dir = deploy_dir
-
# Connect to all the servers
if not quiet:
click.echo(err=True)
