This commit is contained in:
ed 2022-04-09 20:41:08 +02:00
parent e9be7e712d
commit bf658a522b
2 changed files with 6 additions and 6 deletions

View File

@ -741,10 +741,10 @@ class AuthSrv(object):
unames = ["*"] + list(acct.keys())
umap = {x: [] for x in unames}
for usr in unames:
for mp, vol in vfs.all_vols.items():
for vp, vol in vfs.all_vols.items():
axs = getattr(vol.axs, axs_key)
if usr in axs or "*" in axs:
umap[usr].append(mp)
umap[usr].append(vp)
umap[usr].sort()
setattr(vfs, "a" + perm, umap)

View File

@ -477,13 +477,13 @@ class MTag(object):
env["PYTHONPATH"] = pypath
ret = {}
for tagname, mp in parsers.items():
for tagname, parser in parsers.items():
try:
cmd = [mp.bin, abspath]
if mp.bin.endswith(".py"):
cmd = [parser.bin, abspath]
if parser.bin.endswith(".py"):
cmd = [sys.executable] + cmd
args = {"env": env, "timeout": mp.timeout}
args = {"env": env, "timeout": parser.timeout}
if WINDOWS:
args["creationflags"] = 0x4000