Space folder root directory

I want to know the root directory of the space where I can import .py files.

When I clone it like this, it seems like it still throws an error.

from model import MyTransformer

repo_url = f"https://{api_key}@huggingface.co/username/MODEL"
subprocess.run(["git", "clone", repo_url])
source = 'MODEL/*'
destination = '/home/user/app/'
subprocess.run(['cp', '-r', source, destination], shell=True)
===== Application Startup at 2024-09-10 15:29:08 =====

Traceback (most recent call last):
  File "/home/user/app/app.py", line 5, in <module>
    from model import TransformerTTS
ModuleNotFoundError: No module named 'model'
Traceback (most recent call last):
  File "/home/user/app/app.py", line 5, in <module>
    from model import TransformerTTS
ModuleNotFoundError: No module named 'model'

I suppose you could also use pathlib.Path to resolve, but I think this is safer.

destination = '.'