diff --git a/confutils.nim b/confutils.nim index 93cd239..f24f651 100644 --- a/confutils.nim +++ b/confutils.nim @@ -96,7 +96,10 @@ when defined(nimscript): else: template appInvocation: string = - getAppFilename().splitFile.name + try: + getAppFilename().splitFile.name + except OSError: + "" when noColors: const