File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 26
26
tmp = sys .argv [sys .argv .index ('-p' ) + 1 ]
27
27
if not os .path .isabs (tmp ):
28
28
print 'the path is not an absolute path.\n '
29
- exit ()
29
+ exit (- 1 )
30
30
31
31
if not os .path .exists (tmp ):
32
32
print 'the directory does not exist.\n '
33
- exit ()
33
+ exit (- 1 )
34
34
35
35
project_root = tmp
36
36
50
50
if platform_name == 'linux' and not os .path .exists (
51
51
os .path .join (project_root , 'nw' )):
52
52
print 'nw file does not exist.\n '
53
- exit ()
53
+ exit (- 1 )
54
54
55
55
if platform_name == 'win' and not os .path .exists (
56
56
os .path .join (project_root , 'nw.exe' )):
57
57
print 'nw file does not exist.\n '
58
- exit ()
58
+ exit (- 1 )
59
59
60
60
if platform_name == 'osx' and not os .path .exists (
61
61
os .path .join (project_root , 'node-webkit.app' )):
62
62
print 'nw file does not exist.\n '
63
- exit ()
63
+ exit (- 1 )
64
64
65
65
if platform_name != 'win' and not os .path .exists (
66
66
os .path .join (project_root , 'chromedriver2_server' )):
67
67
print 'chromedriver2_server file does not exist.\n '
68
- exit ()
68
+ exit (- 1 )
69
69
70
70
if platform_name == 'win' and not os .path .exists (
71
71
os .path .join (project_root , 'chromedriver2_server.exe' )):
72
72
print 'chromedriver2_server file does not exist.\n '
73
- exit ()
73
+ exit (- 1 )
74
74
75
75
76
76
required_file_linux = (
You can’t perform that action at this time.
0 commit comments