Skip to content

Commit

Permalink
Fix GUI
Browse files Browse the repository at this point in the history
  • Loading branch information
pfebrer committed May 23, 2024
1 parent e7f543a commit d7bdaac
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name = "nodify"
description = "Supercharge your functional application with a powerful node system."
readme = "README.md"
license = {file = "LICENSE"}
version = "0.0.7"
version = "0.0.8"

dependencies = []

Expand Down Expand Up @@ -74,6 +74,9 @@ gui = [
[project.scripts]
nodify-gui = "nodify.gui.cli:nodify_gui_cli"

[tool.setuptools.package-data]
"nodify.gui" = ["build/*", "build/static/*/*"]


[tool.pytest.ini_options]
testpaths = [
Expand Down
8 changes: 3 additions & 5 deletions src/nodify/gui/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ def cli():
parser.add_argument(
"modules",
type=str,
nargs="?",
nargs="*",
default=defaults.get("modules", ["f"]),
help="Modules to nodify before launching the GUI",
)
parser.add_argument(
Expand Down Expand Up @@ -58,10 +59,7 @@ def cli():

args = parser.parse_args()

if not hasattr(args, "modules"):
modules_to_nodify = [*modules, defaults.get("modules", [])]
else:
modules_to_nodify = [*modules, args.modules]
modules_to_nodify = [*modules, *(args.modules or [])]

# Nodify all requested modules
for module_string in modules_to_nodify:
Expand Down

0 comments on commit d7bdaac

Please sign in to comment.