Spaces:
Sleeping
Sleeping
"""Spaces launch file """ | |
import os | |
import sys | |
# TODO: Remove hacky import fixes and change of work dir. by moving to | |
# relative imports and fixing data paths | |
app_dir = os.path.join(os.path.dirname(__file__), "src") | |
sys.path.append(app_dir) | |
if __name__ == "__main__": | |
from src import controller | |
os.chdir(app_dir) | |
controller.app_launch() | |