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
Importing this as is from a python project's modules' directory that is 'project_dir/sample/' will raise a filepath error. It is very simple to fix this issue but will greatly increase the usabilty of the code. Instead of defining fixed file paths for text files like this:
Importing this as is from a python project's modules' directory that is 'project_dir/sample/' will raise a filepath error. It is very simple to fix this issue but will greatly increase the usabilty of the code. Instead of defining fixed file paths for text files like this:
Define the filepaths in runtime instead so that it can run as a importable module or a standalone script or whatever, like this:
P.S. the Names folder still needs to be in the same directory as the script.
The text was updated successfully, but these errors were encountered: