You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
762 B

#! /usr/bin/env python3
import argparse
import os
parser = argparse.ArgumentParser(description='Display list of generated CSS files')
parser.add_argument('--include-map-files', dest='map_files', action='store_true', help='include .map files')
args = parser.parse_args()
for dirname in sorted(os.listdir('static')):
config = os.path.join('static', dirname, 'config.json')
if not os.path.exists(config):
print('static/%s/style.css' % dirname)
if args.map_files:
print('static/%s/' % dirname)
if os.path.exists(os.path.join('static', dirname, 'backoffice.scss')):
print('static/%s/backoffice.css' % dirname)
if args.map_files:
print('static/%s/' % dirname)