mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-05 06:53:18 +08:00
Update modutils.py
This commit is contained in:
parent
a01e5608e0
commit
f5ec632f83
@ -136,7 +136,9 @@ def create_user_system_scripts() -> None:
|
|||||||
path = f'{env.python_directory_user}/sys/{env.version}'
|
path = f'{env.python_directory_user}/sys/{env.version}'
|
||||||
pathtmp = path + '_tmp'
|
pathtmp = path + '_tmp'
|
||||||
if os.path.exists(path):
|
if os.path.exists(path):
|
||||||
shutil.rmtree(path)
|
print('Delete Existing User Scripts and try again.')
|
||||||
|
_babase.screenmessage('Delete Existing User Scripts and try again.')
|
||||||
|
return
|
||||||
if os.path.exists(pathtmp):
|
if os.path.exists(pathtmp):
|
||||||
shutil.rmtree(pathtmp)
|
shutil.rmtree(pathtmp)
|
||||||
|
|
||||||
@ -159,6 +161,7 @@ def create_user_system_scripts() -> None:
|
|||||||
f"'\nRestart {_babase.appname()} to use them."
|
f"'\nRestart {_babase.appname()} to use them."
|
||||||
f' (use babase.quit() to exit the game)'
|
f' (use babase.quit() to exit the game)'
|
||||||
)
|
)
|
||||||
|
_babase.screenmessage('Created User System Scripts')
|
||||||
if app.classic is not None and app.classic.platform == 'android':
|
if app.classic is not None and app.classic.platform == 'android':
|
||||||
print(
|
print(
|
||||||
'Note: the new files may not be visible via '
|
'Note: the new files may not be visible via '
|
||||||
@ -183,6 +186,7 @@ def delete_user_system_scripts() -> None:
|
|||||||
f'Restart {_babase.appname()} to use internal'
|
f'Restart {_babase.appname()} to use internal'
|
||||||
f' scripts. (use babase.quit() to exit the game)'
|
f' scripts. (use babase.quit() to exit the game)'
|
||||||
)
|
)
|
||||||
|
_babase.screenmessage('Deleted User System Scripts')
|
||||||
else:
|
else:
|
||||||
print(f"User system scripts not found at '{path}'.")
|
print(f"User system scripts not found at '{path}'.")
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user