Merge pull request #1633 from davep/click-warn

Catch an attempt to use the `textual` command in a non-dev context
This commit is contained in:
Will McGugan
2023-01-23 17:18:03 +01:00
committed by GitHub

View File

@@ -1,7 +1,13 @@
from __future__ import annotations
import sys
try:
import click
except ImportError:
print("Please install 'textual[dev]' to use the 'textual' command")
sys.exit(1)
import click
from importlib_metadata import version
from textual.pilot import Pilot