Fix textual run path bug on Windows (#899)

This commit is contained in:
darrenburns
2022-10-13 13:56:46 +01:00
committed by GitHub
parent 24fb57702c
commit a398aebb0a

View File

@@ -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"):