Skip to content

Commit 9523429

Browse files
Update rmgpy/data/kinetics/database.py
Add link to documentation showing recommended way to replace imp.load_source Co-authored-by: Jackson Burns <33505528+JacksonBurns@users.noreply.github.com>
1 parent 793459f commit 9523429

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

rmgpy/data/kinetics/database.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ def load_recommended_families(self, filepath):
142142

143143
# Load the recommended.py file as a module
144144
try:
145+
# https://docs.python.org/3/whatsnew/3.12.html#imp
145146
loader = importlib.machinery.SourceFileLoader('rec', filepath)
146147
spec = importlib.util.spec_from_file_location('rec', filepath, loader=loader)
147148
rec = importlib.util.module_from_spec(spec)

0 commit comments

Comments
 (0)