Resolve ACE-Step worker vendor package before Deck coordinator
This commit is contained in:
1 parent
79e4f315b5
commit
75d41b89f2
1 file changed
+5
-1
+5
-1
@@ -1,6 +1,10 @@
|
||||
"""Resident, offline ACE-Step worker. Own runtime; no shared package changes."""
|
||||
import contextlib,json,sys
|
||||
import contextlib,json,os,sys
|
||||
from pathlib import Path
|
||||
# The worker's directory also contains Deck's acestep.py coordinator.
|
||||
# Prefer the pinned vendor package over that identically named module.
|
||||
if os.environ.get('PYTHONPATH'):
|
||||
sys.path.insert(0,os.environ['PYTHONPATH'].split(os.pathsep)[0])
|
||||
|
||||
def write(root,name,data):
|
||||
temp=root/(name+'.tmp');temp.write_text(json.dumps(data));temp.replace(root/name)
|
||||
|
||||
Reference in new issue
Block a user