mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-06-08 19:32:15 +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:
parent
18dae6513d
commit
8386487dc1
@ -387,7 +387,9 @@ if __name__ == '__main__': # noqa: C901
|
|||||||
if (
|
if (
|
||||||
(
|
(
|
||||||
git_branch == 'develop'
|
git_branch == 'develop'
|
||||||
or '-alpha0' in str(appversion())
|
or (
|
||||||
|
git_branch == '' and '-alpha0' in str(appversion())
|
||||||
|
)
|
||||||
) and (
|
) and (
|
||||||
(
|
(
|
||||||
sys.platform == 'linux'
|
sys.platform == 'linux'
|
||||||
@ -397,7 +399,7 @@ if __name__ == '__main__': # noqa: C901
|
|||||||
or (
|
or (
|
||||||
sys.platform == 'win32'
|
sys.platform == 'win32'
|
||||||
and environ.get('USERNAME') is not None
|
and environ.get('USERNAME') is not None
|
||||||
and environ['USERNAME'] not in ['Athan']
|
and environ['USERNAME'] not in ['XAthan']
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
):
|
):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user