Spaces:
Build error
Build error
freemt
commited on
Commit
·
f537c4c
1
Parent(s):
89d669f
Update sys.path.insert(0, '.')
Browse files- ubee/__main__.py +7 -1
ubee/__main__.py
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
"""Gen ubee main."""
|
| 2 |
-
# pylint: disable=unused-import
|
| 3 |
|
|
|
|
| 4 |
from itertools import zip_longest
|
| 5 |
from textwrap import dedent
|
| 6 |
|
|
@@ -11,6 +12,10 @@ from icecream import install as ic_install, ic
|
|
| 11 |
import logzero
|
| 12 |
from logzero import logger
|
| 13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
from ubee.ubee import ubee
|
| 15 |
|
| 16 |
ic_install()
|
|
@@ -93,6 +98,7 @@ def main():
|
|
| 93 |
# fn=ubee,
|
| 94 |
title=title,
|
| 95 |
theme=theme,
|
|
|
|
| 96 |
description=description,
|
| 97 |
article=article,
|
| 98 |
# inputs="text",
|
|
|
|
| 1 |
"""Gen ubee main."""
|
| 2 |
+
# pylint: disable=unused-import, wrong-import-position
|
| 3 |
|
| 4 |
+
import sys
|
| 5 |
from itertools import zip_longest
|
| 6 |
from textwrap import dedent
|
| 7 |
|
|
|
|
| 12 |
import logzero
|
| 13 |
from logzero import logger
|
| 14 |
|
| 15 |
+
# for embeddable python
|
| 16 |
+
if "." not in sys.path:
|
| 17 |
+
sys.path.insert(0, ".")
|
| 18 |
+
|
| 19 |
from ubee.ubee import ubee
|
| 20 |
|
| 21 |
ic_install()
|
|
|
|
| 98 |
# fn=ubee,
|
| 99 |
title=title,
|
| 100 |
theme=theme,
|
| 101 |
+
layout="vertical", # horizontal unaligned
|
| 102 |
description=description,
|
| 103 |
article=article,
|
| 104 |
# inputs="text",
|