diff --git a/README.md b/README.md
index f54d4b6..d7a200c 100644
--- a/README.md
+++ b/README.md
@@ -12,7 +12,7 @@ Delphi's VCL library allows for building native Windows GUI Applications.
There is a free [eBook and styles bundle](https://embt.co/PythonGUIBundle) with 29 custom styles and 50 pages of content.
-
+
## Installation: ##
diff --git a/delphivcl/__init__.py b/delphivcl/__init__.py
index 6bd558a..6a69104 100644
--- a/delphivcl/__init__.py
+++ b/delphivcl/__init__.py
@@ -1,10 +1,7 @@
import sys
import os
-import sys
import platform
import importlib
-import importlib.machinery
-import importlib.util
def find_extension_module():
@@ -23,22 +20,23 @@ def find_extension_module():
# Win x86
lib_dir = "Win32"
- if lib_dir:
- lib_dir = os.path.join(os.path.dirname(
- os.path.abspath(__file__)), lib_dir)
- if not os.path.exists(lib_dir):
- raise ValueError(
- "DelphiVCL module not found. \
- Try to reinstall the delphivcl package or check for support compatibility.")
-
- for file_name in os.listdir(lib_dir):
- if 'DelphiVCL' in file_name:
- return os.path.join(lib_dir, os.path.basename(file_name))
- raise ValueError(
- "DelphiVCL module not found. Try to reinstall the delphivcl package.")
- else:
+ if not lib_dir:
raise ValueError("Unsupported platform.")
+ lib_dir = os.path.join(os.path.dirname(
+ os.path.abspath(__file__)), lib_dir)
+ if not os.path.exists(lib_dir):
+ raise ValueError(
+ "DelphiVCL module not found. \
+ Try to reinstall the delphivcl package or check for support compatibility.")
+
+ for file_name in os.listdir(lib_dir):
+ if 'DelphiVCL' in file_name:
+ return os.path.join(lib_dir, os.path.basename(file_name))
+
+ raise ValueError(
+ "DelphiVCL module not found. Try to reinstall the delphivcl package.")
+
def new_import():
lib_path = find_extension_module()
diff --git a/images/30_Banner_Ebook_Getting_Started_with_Python_GUI_830x256.jpg b/images/30_Banner_Ebook_Getting_Started_with_Python_GUI_830x256.jpg
new file mode 100644
index 0000000..96b79a7
Binary files /dev/null and b/images/30_Banner_Ebook_Getting_Started_with_Python_GUI_830x256.jpg differ
diff --git a/setup.cfg b/setup.cfg
index baf740e..4b7db5f 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -51,4 +51,7 @@ python_requires = >=3
setup_requires =
setuptools_scm
cmdclass =
- bdist_wheel = build.BDistWheel
\ No newline at end of file
+ bdist_wheel = build.BDistWheel
+
+[options.package_data]
+* = *.pyd, *.xml
\ No newline at end of file