Skip to content

Commit

Permalink
additional fix for aotmium registering
Browse files Browse the repository at this point in the history
  • Loading branch information
BradyAJohnston committed Apr 28, 2022
1 parent 402a3ff commit 499420a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
Binary file added release/molecular_nodes_0.3.8.zip
Binary file not shown.
Binary file modified serpens_plugin_file.blend
Binary file not shown.
12 changes: 12 additions & 0 deletions src/import_structure.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
import bpy
import numpy as np
import re
import sys
import os
import site

def verify_user_sitepackages():
usersitepackagespath = site.getusersitepackages()

if os.path.exists(usersitepackagespath) and usersitepackagespath not in sys.path:
sys.path.append(usersitepackagespath)

verify_user_sitepackages()

try:
import atomium
except:
Expand Down

0 comments on commit 499420a

Please sign in to comment.