Skip to content

Commit

Permalink
Merge pull request #66 from BradyAJohnston/bug-fixes
Browse files Browse the repository at this point in the history
Multiple Bug Fixes
  • Loading branch information
BradyAJohnston authored Sep 4, 2022
2 parents 74bcc4c + 2ee0354 commit 863eec2
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
Binary file added release/molecular_nodes_0.12.1.zip
Binary file not shown.
Binary file modified serpens_plugin_file.blend
Binary file not shown.
22 changes: 22 additions & 0 deletions src/check_mda_installed.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
from logging import error
import sys
import os
import site
import importlib.util\

# refreshes the MDAnalysis path and checks if it is installed & importable
# path to python.exe
python_exe = os.path.realpath(sys.executable)


def verify_user_sitepackages(package_location):
if os.path.exists(package_location) and package_location not in sys.path:
sys.path.append(package_location)


verify_user_sitepackages(site.getusersitepackages())
verify_user_sitepackages(mda_dir_location)

mda_available = importlib.util.find_spec('MDAnalysis')
if not mda_available:
error('MDAnalysis is not installed, or not detectable.')

0 comments on commit 863eec2

Please sign in to comment.