I have a python project that contains multiple modules and one module contains a .txt file of a long list of keywords.
How would I access the .txt file and load its content (the list of strings) into a variable in a .py script from another location (not the same directory)??
--- Library
- Module_Alice
- etc..
- Module_Bob
- assets
- audio
- video
- texts
- all_keywords.txt
- unittests
- func
- test_text_process.py
I need to load all keywords in all_keywords.txt
into a variable in test_text_process.py