Skip to content

Commit d97ec4b

Browse files
committed
lint
1 parent d012c1d commit d97ec4b

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

src/compas_fea2/cli.py

+15-14
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
Console script for compas_fea2.
33
"""
44

5-
import json
5+
import importlib
66
import os
77
import sys
88

99
import click
10-
import importlib
1110
import dotenv
1211

13-
from compas_fea2 import HOME, VERBOSE
12+
from compas_fea2 import HOME
13+
from compas_fea2 import VERBOSE
1414

1515
try:
1616
from fea2_extension.main import init_plugin # type: ignore
@@ -54,21 +54,22 @@ def init_backend(backend, clean):
5454
@click.argument("value")
5555
def change_setting(backend, setting, value):
5656
"""Change a setting for the specified backend.\n
57-
backend : txt\n
58-
The name of the backend.
59-
setting : txt\n
60-
The setting to be changed.
61-
value : txt\n
62-
The new value for the setting.
63-
64-
Example usage:\n
65-
fea2 change-setting opensees exe "Applications/OpenSees3.5.0/bin/OpenSees"
57+
backend : txt\n
58+
The name of the backend.
59+
setting : txt\n
60+
The setting to be changed.
61+
value : txt\n
62+
The new value for the setting.
63+
64+
Example usage:\n
65+
fea2 change-setting opensees exe "Applications/OpenSees3.5.0/bin/OpenSees"
6666
"""
67-
m = importlib.import_module("compas_fea2_"+backend.lower())
68-
env = os.path.join(m.HOME,"src", "compas_fea2_"+backend.lower(),".env")
67+
m = importlib.import_module("compas_fea2_" + backend.lower())
68+
env = os.path.join(m.HOME, "src", "compas_fea2_" + backend.lower(), ".env")
6969
dotenv.set_key(env, setting.upper(), value)
7070
print(f"{setting.upper()} set to {value} for compas_fea2_{backend.lower()}")
7171

72+
7273
# -------------------------------- DEBUG ----------------------------------#
7374
if __name__ == "__main__":
7475
sys.exit(main.init_backend())

0 commit comments

Comments
 (0)