File tree 2 files changed +8
-4
lines changed
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -40,8 +40,8 @@ PBApplication class >> do: aBlockClosure [
40
40
[
41
41
self start.
42
42
retVal := aBlockClosure value.
43
- KCF << nil .
44
- KCF send waitForValue. ] ensure : [ self stop ].
43
+ self uniqueInstance commandFactory << nil .
44
+ self uniqueInstance commandFactory send waitForValue. ] ensure : [ self stop ].
45
45
^ retVal
46
46
]
47
47
@@ -106,6 +106,7 @@ PBApplication class >> start [
106
106
self isRunning ifTrue: [ Error signal : ' Keras already running.' ].
107
107
self stop.
108
108
uniqueInstance := self new .
109
+ uniqueInstance commandFactory reset.
109
110
uniqueInstance start
110
111
]
111
112
@@ -190,6 +191,7 @@ PBApplication >> newCommandFactory [
190
191
191
192
{ #category : #accessing }
192
193
PBApplication >> postInitialization [
194
+
193
195
]
194
196
195
197
{ #category : #accessing }
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ PBProcessHandler class >> resolvePipenvPath [
33
33
34
34
{ #category : #accessing }
35
35
PBProcessHandler >> arguments [
36
- ^ { ' run' . ' python' . ' PythonBridge/pharo_hooks .py' .
36
+ ^ { ' run' . ' python' . ' start_bridge .py' .
37
37
' --port' . self communicationHandler pythonPort asString .
38
38
' --pharo' . self communicationHandler pharoPort asString .
39
39
' --log' }
@@ -52,10 +52,12 @@ PBProcessHandler >> isRunning [
52
52
53
53
{ #category : #' instance creation' }
54
54
PBProcessHandler >> newProcess [
55
+ | workingDirectory |
56
+ workingDirectory := self application class repositoryFileReference fullName.
55
57
^ OSSUnixSubprocess new
56
58
command: self class pipEnvPath;
57
59
arguments: self arguments;
58
- workingDirectory: self application class repositoryFileReference fullName ;
60
+ workingDirectory: workingDirectory ;
59
61
redirectStdin;
60
62
redirectStdout;
61
63
redirectStderr;
You can’t perform that action at this time.
0 commit comments