SyntaxFix
Write A Post
Hire A Developer
Questions
You can use this as a generic solution:
import os def getParentDir(path, level=1): return os.path.normpath( os.path.join(path, *([".."] * level)) )