mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-11-23 03:05:35 +08:00
generate_emu_config: allow only have username in my_login.txt
This commit is contained in:
parent
8eac4b7898
commit
cd146fa305
@ -710,9 +710,10 @@ def main():
|
||||
filedata = f.readlines()
|
||||
filedata = list(map(lambda s: s.replace("\r", "").replace("\n", ""), filedata))
|
||||
filedata = [l for l in filedata if l]
|
||||
if len(filedata) == 2:
|
||||
if len(filedata) == 1:
|
||||
USERNAME = filedata[0]
|
||||
PASSWORD = filedata[1]
|
||||
elif len(filedata) == 2:
|
||||
USERNAME, PASSWORD = filedata[0], filedata[1]
|
||||
|
||||
# then allow the env vars to override the login details
|
||||
env_username = os.environ.get('GSE_CFG_USERNAME', None)
|
||||
|
Loading…
Reference in New Issue
Block a user