Skip to content

Commit 97321d1

Browse files
fix RuntimeWarning during imp_load in custom settings file (#185)
1 parent c90c853 commit 97321d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pynamodb/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
override_settings = {}
2121
if os.path.isfile(OVERRIDE_SETTINGS_PATH):
22-
override_settings = imp.load_source(OVERRIDE_SETTINGS_PATH, OVERRIDE_SETTINGS_PATH)
22+
override_settings = imp.load_source('__pynamodb_override_settings__', OVERRIDE_SETTINGS_PATH)
2323
log.info('Override settings for pynamo available {0}'.format(OVERRIDE_SETTINGS_PATH))
2424
else:
2525
log.info('Override settings for pynamo not available {0}'.format(OVERRIDE_SETTINGS_PATH))

0 commit comments

Comments
 (0)