(self, value)
return value.replace(' ', r'\ ')
We cannot use quote_arg because it quotes with ' and " which does not
        work with pkg-config and pkgconf at all.
We cannot use quote_arg because it quotes with ' and " which does not
        work with pkg-config and pkgconf at all.
We cannot use quote_arg because it quotes with and which does not work with pkg - config and pkgconf at all .
def _escape(self, value):
        '''
        We cannot use quote_arg because it quotes with ' and " which does not
        work with pkg-config and pkgconf at all.
        '''
        # We should always write out paths with / because pkg-config requires
        # spaces to be quoted with \ and that messes up on Windows:
        # https://bugs.freedesktop.org/show_bug.cgi?id=103203
        if isinstance(value, PurePath):
            value = value.as_posix()
        return value.replace(' ', r'\ ')
def _escape ( self , value ) : # We should always write out paths with / because pkg-config requires # spaces to be quoted with \ and that messes up on Windows: # https://bugs.freedesktop.org/show_bug.cgi?id=103203 if isinstance ( value , PurePath ) : value = value . as_posix ( ) return value . replace ( ' ' , r'\ ' )