From a4fb6c4ab094c51eaec593cb28ad9d0b82a2e47f Mon Sep 17 00:00:00 2001 From: raynardj Date: Tue, 10 Jan 2023 13:40:33 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=A6=20flexible=20imports?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- forgebox/__init__.py | 2 +- forgebox/imports.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/forgebox/__init__.py b/forgebox/__init__.py index 9e604c0..e13bd59 100644 --- a/forgebox/__init__.py +++ b/forgebox/__init__.py @@ -1 +1 @@ -__version__ = "1.0.7" +__version__ = "1.0.8" diff --git a/forgebox/imports.py b/forgebox/imports.py index e553d4a..23cac0a 100644 --- a/forgebox/imports.py +++ b/forgebox/imports.py @@ -49,6 +49,9 @@ pass from glob import glob -from PIL import Image +try: + from PIL import Image +except: + pass Path.ls = lambda x: os.listdir(x)