You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current path handling assumes that code will always be executed from the library's directory, making it difficult to use the the library's functionalities outside of it.
Problem
Tried calling some methods from the core.py script in another script (outside the library's directory), but got errors concerning folders or files not being found.
Proposed Solution
For instance, I have temporarly solved this by replacing the way you handle the now_dir in certain files as follows:
In other scripts, I had to add the current_directory to os.path.join for certain files. For instance, in the preparing_files.py script, I had to do this:
Description
Current path handling assumes that code will always be executed from the library's directory, making it difficult to use the the library's functionalities outside of it.
Problem
Tried calling some methods from the
core.py
script in another script (outside the library's directory), but got errors concerning folders or files not being found.Proposed Solution
For instance, I have temporarly solved this by replacing the way you handle the
now_dir
in certain files as follows:Old Code:
My Solution:
In other scripts, I had to add the
current_directory
toos.path.join
for certain files. For instance, in thepreparing_files.py
script, I had to do this:Alternatives Considered
idk
The text was updated successfully, but these errors were encountered: