accomodate pythiapgsdir