mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-19 10:09:38 +00:00
15 lines
372 B
Python
15 lines
372 B
Python
import logging
|
|
import os
|
|
import pathlib
|
|
import shutil
|
|
|
|
_logger = logging.getLogger(__name__)
|
|
|
|
|
|
class SystemPath(pathlib.Path):
|
|
_accessor = pathlib._normal_accessor # noqa
|
|
_flavour = pathlib._windows_flavour if os.name == 'nt' else pathlib._posix_flavour # noqa
|
|
|
|
def rmtree(self, ignore_errors=False):
|
|
shutil.rmtree(self, ignore_errors=ignore_errors)
|