Added initaliser for players.json

This commit is contained in:
2025-06-22 17:33:20 +01:00
parent bf3392236a
commit 1cbf9ef2af

View File

@ -66,3 +66,12 @@ for path in os.listdir('../'):
continue
installRequirements(requirementsPath)
if os.path.isfile('../players.json'):
newPlayerJSON = inputYN(f'player.json already exists, would you like to overwrite it? (y/n) > ')
else:
newPlayerJSON = True
if newPlayerJSON:
print(f'---------- Copying example players.json ----------')
shutil.copyfile('../NoPELib/players.json', '../players.json')