Skip to content

Commit

Permalink
BUG: guard against having an uninitialized list of scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
rkern committed Jan 29, 2010
1 parent 786f775 commit 7a53c06
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions numpy/distutils/misc_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -1677,6 +1677,8 @@ def add_scripts(self,*files):
scripts = self.paths(files)
dist = self.get_distribution()
if dist is not None:
if dist.scripts is None:
dist.scripts = []
dist.scripts.extend(scripts)
else:
self.scripts.extend(scripts)
Expand Down

0 comments on commit 7a53c06

Please sign in to comment.