fpsql-py-package/main.py

32 lines
749 B
Python
Raw Normal View History

2023-09-29 23:35:51 +00:00
from os import environ, system
from build import build
system("clear")
# joe = system("cat /tmp/updated.txt")
# if joe != 0:
# system("./fix.sh")
# system("clear")
print("Should be nothing from here")
import package.src.firepup650 as fp
print("Until here (Half-second sleep)")
2023-11-18 16:01:40 +00:00
fp.sleep(0.5)
bob = fp.menu({"Yes": "Y", "No": ""}, "(If owner) Build?")
2023-09-29 23:35:51 +00:00
system("clear")
if environ["REPL_OWNER"] == "Firepup650" and bob == "Y":
build()
exit()
else:
2023-11-18 16:01:40 +00:00
print(
fp.menu(
{
"a": "hi",
"Some fairly long second test case": ["a", "b", "c"],
"A third test": 0,
},
"Test menu",
)
)
2023-09-29 23:35:51 +00:00
fp.console.warn("Test Warning")
fp.e("No demo yet!")