mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Fix textual run path bug on Windows (#899)
This commit is contained in:
@@ -31,9 +31,9 @@ def import_app(import_name: str) -> App:
|
||||
import importlib
|
||||
import sys
|
||||
|
||||
from textual.app import App
|
||||
from textual.app import App, WINDOWS
|
||||
|
||||
import_name, *argv = shlex.split(import_name)
|
||||
import_name, *argv = shlex.split(import_name, posix=not WINDOWS)
|
||||
lib, _colon, name = import_name.partition(":")
|
||||
|
||||
if lib.endswith(".py"):
|
||||
|
||||
Reference in New Issue
Block a user