mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2025-07-03 15:15:19 +02:00
generate_emu_config: allow only have username in my_login.txt
This commit is contained in:
parent
8eac4b7898
commit
cd146fa305
1 changed files with 3 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue