From 8386487dc1f7a3738abf84d5d68adbc26fa555e3 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Tue, 20 Dec 2022 17:58:38 +0000 Subject: [PATCH] Tweak non-developer-running-develop check This allows for someone running a custom branch, with working `git branch`, even if it's an `-alpha0` version. --- EDMarketConnector.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/EDMarketConnector.py b/EDMarketConnector.py index f8c676df..779aa006 100755 --- a/EDMarketConnector.py +++ b/EDMarketConnector.py @@ -387,7 +387,9 @@ if __name__ == '__main__': # noqa: C901 if ( ( git_branch == 'develop' - or '-alpha0' in str(appversion()) + or ( + git_branch == '' and '-alpha0' in str(appversion()) + ) ) and ( ( sys.platform == 'linux' @@ -397,7 +399,7 @@ if __name__ == '__main__': # noqa: C901 or ( sys.platform == 'win32' and environ.get('USERNAME') is not None - and environ['USERNAME'] not in ['Athan'] + and environ['USERNAME'] not in ['XAthan'] ) ) ):