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")