Skip to content

Commit 21beaad

Browse files
committed
Correct context start up.
1 parent 1e21d8b commit 21beaad

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

disBatch.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
DisBatchPath = os.path.realpath(__file__)
2323
ImportDir = os.path.dirname(DisBatchPath)
2424

25+
sys.path.append(ImportDir)
26+
2527
try:
2628
import kvsstcp
2729
except ImportError:
@@ -1409,7 +1411,7 @@ def shutdown(s=None, f=None):
14091411
else:
14101412
extraArgs.extend([aName, str(v)])
14111413

1412-
subContext = SUB.Popen([DisBatchPath, '--context', DbUtilPath] + extraArgs, stdin=open(os.devnull, 'r'), stdout=open(uniqueId + '_context_wrap.out', 'w'), stderr=open(uniqueId + '_context_wrap.err', 'w'), close_fds=True)
1414+
subContext = SUB.Popen([DbUtilPath] + extraArgs, stdin=open(os.devnull, 'r'), stdout=open(uniqueId + '_context_wrap.out', 'w'), stderr=open(uniqueId + '_context_wrap.err', 'w'), close_fds=True)
14131415
else:
14141416
print('Run this script to add compute contexts:\n ' + DbUtilPath)
14151417
subContext = None

0 commit comments

Comments
 (0)