File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 37
37
38
38
zip = zipfile .ZipFile (os .path .dirname (__file__ ), "r" )
39
39
40
+ is_windows = os .name == "nt"
41
+
40
42
41
43
def not_empty (value ):
42
44
return len (value ) != 0
@@ -123,7 +125,7 @@ def ask(*args, **kwargs):
123
125
header = "This will require you to download clang-tidy locally." ,
124
126
) == "y" ,
125
127
"examples" : False ,
126
- "os" : "win64" if os . name == "nt" else "unix" ,
128
+ "os" : "win64" if is_windows else "unix" ,
127
129
}
128
130
d ["uc_name" ] = d ["name" ].upper ().replace ("-" , "_" )
129
131
if d ["type_id" ] != "e" :
@@ -192,8 +194,8 @@ def git_init(cwd):
192
194
193
195
194
196
def print_tips (d ):
195
- config = " --config Release" if os . name == "nt" else ""
196
- test_cfg = " -C Release" if os . name == "nt" else ""
197
+ config = " --config Release" if is_windows else ""
198
+ test_cfg = " -C Release" if is_windows else ""
197
199
cpus = os .cpu_count ()
198
200
print (f"""\
199
201
To get you started with the project in developer mode, you may configure,
You can’t perform that action at this time.
0 commit comments