aboutsummaryrefslogtreecommitdiff
path: root/modules/paths.py
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2022-10-09 17:58:43 +0300
committerAUTOMATIC <16777216c@gmail.com>2022-10-09 17:58:43 +0300
commit875ddfeecfaffad9eee24813301637cba310337d (patch)
tree1f82fc979813d4ec307616686f93a78dedac81ba /modules/paths.py
parentbba2ac8324ccd1a67c78e5f59babae8323ec7dc6 (diff)
added guard for torch.load to prevent loading pickles with unknown content
Diffstat (limited to 'modules/paths.py')
-rw-r--r--modules/paths.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/paths.py b/modules/paths.py
index 0519caa0..1e7a2fbc 100644
--- a/modules/paths.py
+++ b/modules/paths.py
@@ -1,6 +1,7 @@
import argparse
import os
import sys
+import modules.safe
script_path = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
models_path = os.path.join(script_path, "models")