Skip to content

Commit

Permalink
MAI: explicitly define file name for cudd tarball
Browse files Browse the repository at this point in the history
  • Loading branch information
johnyf committed Mar 9, 2018
1 parent c07b6cf commit 94c1a94
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion download.py
Expand Up @@ -28,6 +28,7 @@
EXTENSIONS = ['cudd', 'buddy', 'sylvan']
# CUDD
CUDD_VERSION = '3.0.0'
CUDD_TARBALL = 'cudd-{v}.tar.gz'.format(v=CUDD_VERSION)
CUDD_URL = (
'ftp://vlsi.colorado.edu/'
'pub/cudd-{v}.tar.gz').format(v=CUDD_VERSION)
Expand Down Expand Up @@ -153,7 +154,7 @@ def fetch(url, sha256, fname=None):
print('++ download: {url}'.format(url=url))
u = urllib2.urlopen(url)
if fname is None:
fname = url.split('/')[-1]
fname = CUDD_TARBALL
with open(fname, 'wb') as f:
f.write(u.read())
with open(fname, 'rb') as f:
Expand Down

0 comments on commit 94c1a94

Please sign in to comment.