summaryrefslogtreecommitdiffstats
path: root/libtoprammer/bitfile.py
diff options
context:
space:
mode:
authorMichael Buesch <mb@bu3sch.de>2010-03-19 15:31:30 +0100
committerMichael Buesch <mb@bu3sch.de>2010-03-19 15:31:30 +0100
commit8cd7efbb6666ca18691710d47149a7e0a1a2db47 (patch)
tree6aaf5f7f8e2fa0c95ee446945b0bc4d0eec2fa22 /libtoprammer/bitfile.py
parentad3bcf06d7845d1396db00dbd56e9124fd43d4d0 (diff)
downloadtoprammer-8cd7efbb6666ca18691710d47149a7e0a1a2db47.tar.xz
toprammer-8cd7efbb6666ca18691710d47149a7e0a1a2db47.zip
Select chips by chip-ID. Not by bitfile.
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Diffstat (limited to 'libtoprammer/bitfile.py')
-rw-r--r--libtoprammer/bitfile.py5
1 files changed, 3 insertions, 2 deletions
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
bues.ch cgit interface