mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Simplify
This commit is contained in:
@@ -226,9 +226,7 @@ class App(Generic[ReturnType], DOMNode):
|
|||||||
|
|
||||||
# We want the CSS path to be resolved from the location of the App subclass
|
# We want the CSS path to be resolved from the location of the App subclass
|
||||||
css_path = css_path or self.CSS_PATH
|
css_path = css_path or self.CSS_PATH
|
||||||
if css_path is None:
|
if css_path is not None:
|
||||||
css_path = None
|
|
||||||
else:
|
|
||||||
if isinstance(css_path, str):
|
if isinstance(css_path, str):
|
||||||
css_path = Path(css_path)
|
css_path = Path(css_path)
|
||||||
css_path = _make_path_object_relative(css_path, self) if css_path else None
|
css_path = _make_path_object_relative(css_path, self) if css_path else None
|
||||||
|
|||||||
Reference in New Issue
Block a user