Added initaliser for players.json
This commit is contained in:
11
setup.py
11
setup.py
@ -65,4 +65,13 @@ for path in os.listdir('../'):
|
|||||||
print(f'{path} does not have a requirements.txt, skipping...')
|
print(f'{path} does not have a requirements.txt, skipping...')
|
||||||
continue
|
continue
|
||||||
|
|
||||||
installRequirements(requirementsPath)
|
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