output folder can now be changed in dev mode

This commit is contained in:
meewan 2020-10-18 14:50:40 +02:00
parent 940f54fc44
commit 43e48cdac1

View File

@ -65,9 +65,7 @@ parser.add_argument('-f', '--format', default="folder",
choices=("gzip", "folder", 'dev'), choices=("gzip", "folder", 'dev'),
help="Format output (either gzip, dev or folder)") help="Format output (either gzip, dev or folder)")
args = parser.parse_args() args = parser.parse_args()
output = args.output if args.format == 'folder' else '_build' output = args.output if args.format != 'gzip' else '_build'
if args.format == 'dev':
output = '/var/www/html'
render(args, output) render(args, output)
# compress # compress
if args.format == 'gzip': if args.format == 'gzip':