RESHAPELab / ART-UI

UI for the ART project
GNU Affero General Public License v3.0
0 stars 2 forks source link

File Paths is not right #1

Open utzerath opened 2 weeks ago

utzerath commented 2 weeks ago

When adding a str that is the file path to externaldatabase instance, the file cannot be found even though the file path seems to be correct. Where is it looking for files?

BenCarter44 commented 1 week ago

The working directory of the whole repository when the web server is run is /AST_Rock_Website where repo is root.

So, to get the databases and domains, one can refer to the files from the working directory like this:


db = DatabaseManager(
        dbfile="CoreEngine/output/main.db",
        cachefile="CoreEngine/output/ai_result_backup.db",
        label_file="CoreEngine/data/subdomain_labels.json",
    )