From 8cd7efbb6666ca18691710d47149a7e0a1a2db47 Mon Sep 17 00:00:00 2001 From: Michael Buesch Date: Fri, 19 Mar 2010 15:31:30 +0100 Subject: Select chips by chip-ID. Not by bitfile. Signed-off-by: Michael Buesch --- libtoprammer/bitfile.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libtoprammer/bitfile.py') diff --git a/libtoprammer/bitfile.py b/libtoprammer/bitfile.py index f4e0546..e141602 100644 --- a/libtoprammer/bitfile.py +++ b/libtoprammer/bitfile.py @@ -131,8 +131,9 @@ def bitfileFind(filename): "Search some standard paths for a bitfile" if not filename.endswith(".bit"): filename += ".bit" - if __probeFile(filename): - return filename + if filename.startswith("/"): + if __probeFile(filename): + return filename paths = ( ".", "./libtoprammer/bit", ) for path in paths: fullpath = path + "/" + filename -- cgit v1.2.3