mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-04-28 09:17:17 +00:00
Compare commits
2 Commits
88f71b240d
...
a11fd188a2
Author | SHA1 | Date | |
---|---|---|---|
a11fd188a2 | |||
2431d5de0e |
@ -1,7 +1,7 @@
|
||||
# Maintainer: Evgeniy Alekseev
|
||||
|
||||
pkgname='ahriman'
|
||||
pkgver=2.0.0rc10
|
||||
pkgver=2.0.0rc11
|
||||
pkgrel=1
|
||||
pkgdesc="ArcH Linux ReposItory MANager"
|
||||
arch=('any')
|
||||
|
@ -19,6 +19,7 @@
|
||||
#
|
||||
import importlib
|
||||
import logging
|
||||
import os
|
||||
|
||||
from pathlib import Path
|
||||
from types import ModuleType
|
||||
@ -123,7 +124,8 @@ class TriggerLoader:
|
||||
*package_path_parts, class_name = module_path.split(".")
|
||||
package_or_path = ".".join(package_path_parts)
|
||||
|
||||
if Path(package_or_path).is_file():
|
||||
# it works for both missing permission and file does not exist
|
||||
if os.access(Path(package_or_path), os.R_OK):
|
||||
module = self._load_module_from_file(package_or_path, class_name)
|
||||
else:
|
||||
module = self._load_module_from_package(package_or_path)
|
||||
|
@ -17,4 +17,4 @@
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
__version__ = "2.0.0rc10"
|
||||
__version__ = "2.0.0rc11"
|
||||
|
Loading…
Reference in New Issue
Block a user