comparison piecrust/processing/less.py @ 116:1c13f3389fcb

Cosmetic fix.
author Ludovic Chabant <ludovic@chabant.com>
date Mon, 27 Oct 2014 08:18:12 -0700
parents de6a296744f7
children 0811f92cbdc7
comparison
equal deleted inserted replaced
115:9c074aec60a6 116:1c13f3389fcb
54 args.append(out_path) 54 args.append(out_path)
55 logger.debug("Processing LESS file: %s" % args) 55 logger.debug("Processing LESS file: %s" % args)
56 56
57 # On Windows, we need to run the process in a shell environment 57 # On Windows, we need to run the process in a shell environment
58 # otherwise it looks like `PATH` isn't taken into account. 58 # otherwise it looks like `PATH` isn't taken into account.
59 shell=(platform.system() == 'Windows') 59 shell = (platform.system() == 'Windows')
60 try: 60 try:
61 retcode = subprocess.call(args, shell=shell) 61 retcode = subprocess.call(args, shell=shell)
62 except FileNotFoundError as ex: 62 except FileNotFoundError as ex:
63 logger.error("Tried running LESS processor with command: %s" % 63 logger.error("Tried running LESS processor with command: %s" %
64 args) 64 args)