root_dir = pathlib.PurePath(os.path.dirname(os.path.realpath(__file__))).parent.parent.parent
file_path = os.path.join(root_dir, "resources", "sample_test_document.txt")
I really don’t understand what this code means. I need to put a relative path in file_path—what should I do?
Nice explanation
Nice explanation
Follow the journey
Get new posts by email.
Short, honest notes on building, startups, learning, failures, and retrospectives, for readers who follow the journey rather than pass through from search.
The newsletter is coming soon. Until then, follow via
RSS
or email me to get notified.