Skip to content

Commit

Permalink
artiq_flash: fix scripts_path
Browse files Browse the repository at this point in the history
  • Loading branch information
jordens authored and sbourdeauducq committed Feb 1, 2017
1 parent e3260be commit abb5b8a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions artiq/frontend/artiq_flash.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@


def scripts_path():
scripts_path = ["share", "openocd", "scripts"]
p = ["share", "openocd", "scripts"]
if os.name == "nt":
scripts_path.insert(0, "Library")
scripts_path = os.path.abspath(os.path.join(
p.insert(0, "Library")
p = os.path.abspath(os.path.join(
os.path.dirname(shutil.which("openocd")),
"..", *scripts_path))
"..", *p))
return p


def get_argparser():
Expand Down

0 comments on commit abb5b8a

Please sign in to comment.