Added initaliser for players.json
This commit is contained in:
9
setup.py
9
setup.py
@ -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')
|
||||
Reference in New Issue
Block a user