diff options
author | Pearu Peterson <pearu.peterson@gmail.com> | 2009-02-06 14:38:57 +0000 |
---|---|---|
committer | Pearu Peterson <pearu.peterson@gmail.com> | 2009-02-06 14:38:57 +0000 |
commit | b9086fdf39941343fde65551b8667e635e05f14f (patch) | |
tree | ea63bf4007e8c60e1bfe11274aa89389f6e3cd02 | |
parent | 219327a2c060304137aacc7bd0a335c35b700a8d (diff) | |
download | numpy-b9086fdf39941343fde65551b8667e635e05f14f.tar.gz |
Fix another bug, see last commit.
-rw-r--r-- | numpy/distutils/system_info.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/numpy/distutils/system_info.py b/numpy/distutils/system_info.py index 18cb3347c..5f5f088ea 100644 --- a/numpy/distutils/system_info.py +++ b/numpy/distutils/system_info.py @@ -408,7 +408,8 @@ class system_info: def parse_config_files(self): self.cp.read(self.files) if not self.cp.has_section(self.section): - self.cp.add_section(self.section) + if self.section is not None: + self.cp.add_section(self.section) def calc_libraries_info(self): libs = self.get_libraries() |