From 465fa38354fb4b458dcd6cde993122f61ba77cf1 Mon Sep 17 00:00:00 2001 From: Steve Dower Date: Thu, 10 Sep 2026 21:24:56 +0100 Subject: [PATCH] Remove __file__ from alias launch scripts to allow users that assume a string to work. Fixes #412 --- src/manage/aliasutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/manage/aliasutils.py b/src/manage/aliasutils.py index e94e776..1a33a3e 100644 --- a/src/manage/aliasutils.py +++ b/src/manage/aliasutils.py @@ -23,7 +23,7 @@ # Avoid letting __main__.__file__ lead back to this script try: - __file__ = None + del __file__ except Exception: pass