This is superfluous.  You can just do "dir = truedir"