We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd5c07d commit 56fb5afCopy full SHA for 56fb5af
scripts/pyard-reduce-csv
@@ -176,13 +176,14 @@ if __name__ == '__main__':
176
verbose = ard_config["verbose_log"]
177
white_space_regex = re.compile(r"\s+")
178
179
- try:
180
- import openpyxl
181
- except ImportError:
182
- print("For Excel output, openpyxl library needs to be installed. "
183
- "Install with:")
184
- print(" pip install openpyxl")
185
- sys.exit(1)
+ if ard_config["output_file_format"] == 'xlsx':
+ try:
+ import openpyxl
+ except ImportError:
+ print("For Excel output, openpyxl library needs to be installed. "
+ "Install with:")
+ print(" pip install openpyxl")
186
+ sys.exit(1)
187
188
# Instantiate py-ard object with the latest
189
ard = pyard.ARD()
0 commit comments