mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-26 11:48:27 +08:00
artiq_flash: fix scripts_path
This commit is contained in:
parent
e3260beb0c
commit
abb5b8aba5
@ -12,12 +12,13 @@ from artiq.frontend.bit2bin import bit2bin
|
|||||||
|
|
||||||
|
|
||||||
def scripts_path():
|
def scripts_path():
|
||||||
scripts_path = ["share", "openocd", "scripts"]
|
p = ["share", "openocd", "scripts"]
|
||||||
if os.name == "nt":
|
if os.name == "nt":
|
||||||
scripts_path.insert(0, "Library")
|
p.insert(0, "Library")
|
||||||
scripts_path = os.path.abspath(os.path.join(
|
p = os.path.abspath(os.path.join(
|
||||||
os.path.dirname(shutil.which("openocd")),
|
os.path.dirname(shutil.which("openocd")),
|
||||||
"..", *scripts_path))
|
"..", *p))
|
||||||
|
return p
|
||||||
|
|
||||||
|
|
||||||
def get_argparser():
|
def get_argparser():
|
||||||
|
Loading…
Reference in New Issue
Block a user