Refactor conditional PATH for PySide.