I am currently working inside the folder product_graph_analysis
, specifically inside the file "database_functions.py"
and when I configure my base directory:
import os
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
whenever I want to set a path_file:
path_file = os.path.join(BASE_DIR, 'my_file.csv')
The program will look inside the folder product_graph_analysis.
I would like to set a path_file or base directory in the "mother_folder", the one that contains "csv" and "product_graph_analysis", in this way I could access all folders of my project from within database_functions.py