# HG changeset patch # User Paul Boddie # Date 1529769716 -7200 # Node ID 57652d9c6f246a352b364ee88f8bf76cef12eaab # Parent 3ca76e669ee0ce55d065e46496bf112843e680e8 Allow -R (--reset-all) to ignore any missing output directory to remove. diff -r 3ca76e669ee0 -r 57652d9c6f24 lplc --- a/lplc Fri Jun 22 17:14:22 2018 +0200 +++ b/lplc Sat Jun 23 18:01:56 2018 +0200 @@ -3,7 +3,7 @@ """ Lichen Python-like compiler tool. -Copyright (C) 2016, 2017 Paul Boddie +Copyright (C) 2016, 2017, 2018 Paul Boddie This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software @@ -99,6 +99,9 @@ "Remove 'dirname' and its contents." + if not isdir(dirname): + return + for filename in listdir(dirname): pathname = join(dirname, filename) if isdir(pathname):