SyntaxFix
Write A Post
Hire A Developer
Questions
You can also use an object-oriented path with pathlib (available as a standard library as of Python 3.4):
pathlib
from pathlib import Path start_path = Path('/my/root/directory') final_path = start_path / 'in' / 'here'