def _writable_location(typ):
 with qtutils.unset_organization():
  path = QStandardPaths.writableLocation(typ)
 typ_str = debug.qenum_key(QStandardPaths, typ)
 log.misc.debug('writable location for {}: {}'.format(typ_str, path))
 if (not path):
  raise EmptyValueError('QStandardPaths returned an empty value!')
 path = path.replace('/', os.sep)
 return path

def _writable_location ( typ ) : with qtutils . unset_organization ( ) : path = QStandardPaths . writableLocation ( typ ) typ_str = debug . qenum_key ( QStandardPaths , typ ) log . misc . debug ( 'writable location for {}: {}' . format ( typ_str , path ) ) if ( not path ) : raise EmptyValueError ( 'QStandardPaths returned an empty value!' ) path = path . replace ( '/' , os . sep ) return path
wrapper around qstandardpaths .