Last active
June 16, 2025 18:29
-
-
Save pagueru/cb568443e3f140d2409edb5833c7710f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Corrige o caminho do projeto ao executar exemplos, ajustando `sys.path` dinamicamente.""" | |
from pathlib import Path | |
import sys | |
project_path = str(Path(__file__).resolve().parents[1]) | |
sys.path.append(project_path) | |
if __name__ == "__main__": | |
print(project_path) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment