mergin/merginproject.py
def is_gpkg_open(self, path):
        """
        Check whether geopackage file is open (and wal file exists)

        :param path: absolute path of file on disk
        :type path: str
        :returns: whether file is open
        :rtype: bool
        """
        f_extension = os.path.splitext(path)[1]
        if f_extension != '.gpkg':
            return False
        if os.path.exists(f'{path}-wal'):
            return True
        return False

        Check whether geopackage file is open (and wal file exists)

        :param path: absolute path of file on disk
        :type path: str
        :returns: whether file is open
        :rtype: bool
        
Check whether geopackage file is open (and wal file exists)
Check whether geopackage file is open ( and wal file exists )
def is_gpkg_open(self, path):
        f_extension = os.path.splitext(path)[1]
        if f_extension != '.gpkg':
            return False
        if os.path.exists(f'{path}-wal'):
            return True
        return False
def is_gpkg_open ( self , path ) : f_extension = os . path . splitext ( path ) [ 1 ] if f_extension != '.gpkg' : return False if os . path . exists ( f'{path}-wal' ) : return True return False
Check whether geopackage file is open (and wal file exists)
Check whether geopackage file is open ( and wal file exists )
"""
        Check whether geopackage file is open (and wal file exists)

        :param path: absolute path of file on disk
        :type path: str
        :returns: whether file is open
        :rtype: bool
        """
whether file is open
whether file is open
bool
self
path
absolute path of file on disk
absolute path of file on disk