1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-16 09:10:35 +03:00

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.
This commit is contained in:
Athanasius 2022-12-20 17:58:38 +00:00
parent 18dae6513d
commit 8386487dc1
No known key found for this signature in database
GPG Key ID: 772697E181BB2767

View File

@ -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']
)
)
):