simple-ai icon indicating copy to clipboard operation
simple-ai copied to clipboard

Navigating to the Test Directory and Handling `Refinaid` Import Issues

Open 1chooo opened this issue 2 years ago • 0 comments

Descriptions

To test the function, navigate to the test/ directory. However, if importing the Refinaid package is unsuccessful, you can resolve this issue by adding the following code at the beginning of your test script. This code snippet allows you to return to the project root directory.

import sys
from os.path import join
from os.path import dirname
from os.path import abspath

project_root = join(
    dirname(abspath(__file__)),
    '..', 
)
sys.path.append(project_root)

1chooo avatar Aug 24 '23 13:08 1chooo