Well the code says
if xdg: pathdir=... elif "HOME" in os.environ: pathdir=...
and if neither of the two if-conditions is satisfied, pathdir will not be assigned at line 41.
Well the code says
if xdg:
pathdir=...
elif "HOME" in os.environ:
pathdir=...
and if neither of the two if-conditions is satisfied, pathdir will not be assigned
at line 41.