File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 17
17
18
18
port_n = utils .free_port ()
19
19
port = str (port_n )
20
- server = subprocess .Popen (['python' , '../http-server-node.py' , port ])
21
20
22
21
tpl = open ('index.tpl' , 'r' )
23
22
content = tpl .read ().replace ('{port}' , port )
35
34
html .write (content )
36
35
html .close ()
37
36
37
+ server = subprocess .Popen (['python' , '../http-server-node.py' , port ])
38
+
38
39
if not wait_net_service ("127.0.0.1" , port_n , 30 ):
39
40
import platform
40
41
if platform .system () == 'Windows' :
Original file line number Diff line number Diff line change 17
17
18
18
port_n = utils .free_port ()
19
19
port = str (port_n )
20
- server = subprocess .Popen (['python' , '../http-server-node.py' , port ])
21
20
22
21
tpl = open ('index.tpl' , 'r' )
23
22
content = tpl .read ().replace ('{port}' , port )
35
34
html .write (content )
36
35
html .close ()
37
36
37
+ server = subprocess .Popen (['python' , '../http-server-node.py' , port ])
38
+
38
39
if not wait_net_service ("127.0.0.1" , port_n , 30 ):
39
40
import platform
40
41
if platform .system () == 'Windows' :
You can’t perform that action at this time.
0 commit comments