forked from bartvdbraak/blender
[#20646] 2.5 does not load python scripts with multiple dots in the filename
- not a bug so add a warning if people add scripts with invalid names like this.
This commit is contained in:
parent
b76551da68
commit
f6c79c553b
@ -47,6 +47,10 @@ def load_scripts(reload_scripts=False):
|
||||
t_main = time.time()
|
||||
|
||||
def test_import(module_name):
|
||||
if "." in module_name:
|
||||
print("Ignoring '%s', can't import files containing multiple periods." % module_name)
|
||||
return None
|
||||
|
||||
try:
|
||||
t = time.time()
|
||||
ret = __import__(module_name)
|
||||
|
Loading…
Reference in New Issue
Block a user