Skip to content

Commit 6ce720e

Browse files
authored
Merge pull request #427 from hbrunn/master-upgrade_path
[IMP] load_data: support v19 upgrade_path
2 parents db0afcb + ecdeca9 commit 6ce720e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

openupgradelib/openupgrade.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,11 @@ def load_data(env_or_cr, module_name, filename, idref=None, mode="init"):
349349
fp = tools.file_open(pathname)
350350
except OSError:
351351
if tools.config.get("upgrade_path"):
352-
for path in tools.config["upgrade_path"].split(","):
352+
if version_info[0] >= 19:
353+
upgrade_paths = tools.config["upgrade_path"]
354+
else:
355+
upgrade_paths = tools.config["upgrade_path"].split(",")
356+
for path in upgrade_paths:
353357
pathname = os.path.join(path, module_name, filename)
354358
try:
355359
fp = open(pathname)

0 commit comments

Comments
 (0)