From 54376ecfabf05c98c4d5c2d4c843ecd2a0667d5a Mon Sep 17 00:00:00 2001 From: Mitchell Tesch Date: Sun, 10 Mar 2024 12:44:52 +1000 Subject: [PATCH] workflow test --- docs/requirements.txt | 1 - src/pytabs/etabs_config.py | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/requirements.txt b/docs/requirements.txt index 38958df..a369590 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1,3 +1,2 @@ sphinx-rtd-theme==2.0.0 sphinx==7.2.6 -pythonnet==3.0.3 diff --git a/src/pytabs/etabs_config.py b/src/pytabs/etabs_config.py index af9542f..a101c83 100644 --- a/src/pytabs/etabs_config.py +++ b/src/pytabs/etabs_config.py @@ -4,6 +4,7 @@ # general library imports import pytabs.pytabs_config as config import os +import warnings import clr # read pytabs config file @@ -12,7 +13,8 @@ # check to see if ETABS API DLL path from config file exists etabs_api_path = pytabs_config['ETABS']['API_DLL_PATH'] if not os.path.isfile(etabs_api_path): - raise FileNotFoundError(etabs_api_path) + warnings.warn(f"ETABS API .DLL unable to be located @ {etabs_api_path}, check pytabs_config.py", + ImportWarning) # pythonnet clr-loader import of Marshal - ETABS API requirement clr.AddReference("System.Runtime.InteropServices")