mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-07 16:13:23 +08:00
Update modutils.py
This commit is contained in:
parent
ce089fed71
commit
59b636dd8f
@ -136,15 +136,10 @@ 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):
|
||||||
print('Delete Existing User Scripts,'
|
print('Delete Existing User Scripts first!')
|
||||||
f'Restart {_babase.appname()} and try again.')
|
|
||||||
_babase.screenmessage(
|
_babase.screenmessage(
|
||||||
'Delete Existing User Scripts,',
|
'Delete Existing User Scripts first!',
|
||||||
color=(1, 0, 0)
|
color=(1, 0, 0),
|
||||||
)
|
|
||||||
_babase.screenmessage(
|
|
||||||
f'Restart {_babase.appname()} and try again.',
|
|
||||||
color=(1, 0, 0)
|
|
||||||
)
|
)
|
||||||
return
|
return
|
||||||
if os.path.exists(pathtmp):
|
if os.path.exists(pathtmp):
|
||||||
@ -195,6 +190,10 @@ def delete_user_system_scripts() -> None:
|
|||||||
f' scripts. (use babase.quit() to exit the game)'
|
f' scripts. (use babase.quit() to exit the game)'
|
||||||
)
|
)
|
||||||
_babase.screenmessage('Deleted User System Scripts', color=(0, 1, 0))
|
_babase.screenmessage('Deleted User System Scripts', color=(0, 1, 0))
|
||||||
|
_babase.screenmessage(
|
||||||
|
f'Restart {_babase.appname()} to take effect.',
|
||||||
|
color=(0, 1, 0),
|
||||||
|
)
|
||||||
else:
|
else:
|
||||||
print(f"User system scripts not found at '{path}'.")
|
print(f"User system scripts not found at '{path}'.")
|
||||||
_babase.screenmessage('User Scripts Not Found', color=(1, 0, 0))
|
_babase.screenmessage('User Scripts Not Found', color=(1, 0, 0))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user