Skip to content

Commit 684bf79

Browse files
committed
Small fixes on _get_bitstream
1 parent 9e10a71 commit 684bf79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyfpga/project.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def make(self, first='cfg', last='bit'):
237237
self._create_file(self.conf['tool'], self.conf['make_ext'])
238238
self._run(self.conf['make_cmd'], 'make.log')
239239

240-
def _get_bitstream(self, bitstream):
240+
def _get_bitstream(self, bitstream=None):
241241
if not bitstream:
242242
for ext in self.conf['prog_bit']:
243243
candidate = Path(self.odir) / f'{self.data["project"]}.{ext}'
@@ -330,4 +330,4 @@ def _get_absolute(path, ext):
330330
path = Path(path).resolve()
331331
if ext == 'tcl':
332332
return path.as_posix()
333-
return path
333+
return str(path)

0 commit comments

Comments
 (0)