mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Fixes clobbering of 'path' argument.
This commit is contained in:
parent
bc4783efac
commit
5e8f077eb5
1 changed files with 2 additions and 2 deletions
|
|
@ -278,8 +278,8 @@ def spawnProcess(processProtocol, bootstrap, args=(), env={},
|
|||
|
||||
pythonpath = []
|
||||
for pkg in packages:
|
||||
path, name = os.path.split(pkg)
|
||||
p = os.path.split(imp.find_module(name, [path] if path else None)[1])[0]
|
||||
pkg_path, name = os.path.split(pkg)
|
||||
p = os.path.split(imp.find_module(name, [pkg_path] if pkg_path else None)[1])[0]
|
||||
if p.startswith(os.path.join(sys.prefix, 'lib')):
|
||||
continue
|
||||
pythonpath.append(p)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue