File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ PBPharoPlatform class >> weakRegistryClass [
3737{ #category : #private }
3838PBPharoPlatform >> copyApplicationTo: appFolder application: application [
3939 " Copy the PythonBridge runtime environment to the specified folder"
40- | srcDir cpCommand proc pbSymLink |
40+ | srcDir cpCommand proc pbSymLink srcFilename dstFilename |
4141
4242 srcDir := FileLocator imageDirectory / ' PythonBridge' .
4343 (srcDir exists and : [ srcDir ~= appFolder ]) ifFalse:
@@ -46,12 +46,15 @@ PBPharoPlatform >> copyApplicationTo: appFolder application: application [
4646 [ self error: ' Unable to locate PythonBridge runtime files' ].
4747
4848 " Copy the runtime directory"
49+ srcFilename := srcDir fullName copyReplaceAll: ' "' with: ' \"' .
50+ dstFilename := appFolder fullName copyReplaceAll: ' "' with: ' \"' .
4951 cpCommand := String streamContents: [ :stream |
5052 stream
51- << ' cp -a ' ;
52- << srcDir fullName;
53- << ' ' ;
54- << appFolder fullName ].
53+ << ' cp -a "' ;
54+ << srcFilename;
55+ << ' " "' ;
56+ << dstFilename;
57+ << ' "' ].
5558 proc := OSSUnixSubprocess new
5659 shellCommand: cpCommand;
5760 runAndWait.
You can’t perform that action at this time.
0 commit comments