Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Navigating to the Test Directory and Handling Refinaid Import Issues #10

Open
1chooo opened this issue Aug 24, 2023 · 0 comments
Open
Assignees
Labels
📑 documentation Improvements or additions to documentation 🍿 good first issue Good for newcomers

Comments

@1chooo
Copy link
Owner

1chooo commented Aug 24, 2023

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 1chooo added 📑 documentation Improvements or additions to documentation 🍿 good first issue Good for newcomers labels Aug 24, 2023
@1chooo 1chooo self-assigned this Aug 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📑 documentation Improvements or additions to documentation 🍿 good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant