summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/report.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/spack/spack/report.py b/lib/spack/spack/report.py
index b67f2e71cc..8e50ebece6 100644
--- a/lib/spack/spack/report.py
+++ b/lib/spack/spack/report.py
@@ -2,7 +2,6 @@
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
-
"""Tools to produce reports of spec installations"""
import codecs
import collections
@@ -281,9 +280,9 @@ class collect_info(object):
.format(self.format_name))
self.report_writer = report_writers[self.format_name](args)
- def __call__(self, type, dir=os.getcwd()):
+ def __call__(self, type, dir=None):
self.type = type
- self.dir = dir
+ self.dir = dir or os.getcwd()
return self
def concretization_report(self, msg):