~tomasgroth/openlp/portable-path

« back to all changes in this revision

Viewing changes to openlp/core/common/path.py

  • Committer: Tomas Groth
  • Date: 2019-04-30 19:02:42 UTC
  • mfrom: (2829.2.32 openlp)
  • Revision ID: tomasgroth@yahoo.dk-20190430190242-6zwjk8724tyux70m
trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
###############################################################################
5
5
# OpenLP - Open Source Lyrics Projection                                      #
6
6
# --------------------------------------------------------------------------- #
7
 
# Copyright (c) 2008-2018 OpenLP Developers                                   #
 
7
# Copyright (c) 2008-2019 OpenLP Developers                                   #
8
8
# --------------------------------------------------------------------------- #
9
9
# This program is free software; you can redistribute it and/or modify it     #
10
10
# under the terms of the GNU General Public License as published by the Free  #
25
25
 
26
26
from openlp.core.common import is_win
27
27
 
 
28
 
28
29
if is_win():
29
30
    from pathlib import WindowsPath as PathVariant          # pragma: nocover
30
31
else:
77
78
        :param onerror: Handler function to handle any errors
78
79
        :rtype: None
79
80
        """
80
 
        shutil.rmtree(str(self), ignore_errors, onerror)
 
81
        shutil.rmtree(self, ignore_errors, onerror)
81
82
 
82
83
 
83
84
def replace_params(args, kwargs, params):