File tree 1 file changed +8
-7
lines changed
1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change 11
11
from artiq .frontend .bit2bin import bit2bin
12
12
13
13
14
+ scripts_path = ["share" , "openocd" , "scripts" ]
15
+ if os .name == "nt" :
16
+ scripts_path .insert (0 , "Library" )
17
+ scripts_path = os .path .abspath (os .path .join (
18
+ os .path .dirname (shutil .which ("openocd" )),
19
+ ".." , * scripts_path ))
20
+
21
+
14
22
def get_argparser ():
15
23
parser = argparse .ArgumentParser (
16
24
formatter_class = argparse .RawDescriptionHelpFormatter ,
@@ -79,13 +87,6 @@ def main():
79
87
raise SystemExit ("Binaries directory '{}' does not exist"
80
88
.format (opts .dir ))
81
89
82
- scripts_path = ["share" , "openocd" , "scripts" ]
83
- if os .name == "nt" :
84
- scripts_path .insert (0 , "Library" )
85
- scripts_path = os .path .abspath (os .path .join (
86
- os .path .dirname (shutil .which ("openocd" )),
87
- ".." , * scripts_path ))
88
-
89
90
conv = False
90
91
91
92
prog = []
You can’t perform that action at this time.
0 commit comments