mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user