➜ 2D Tutorial git:(main) ✗ git push origin main
Username for 'https://github.com': ghjghjf
Password for 'https://ghjghjgh@github.com':
Everything up-to-date
➜ 2D Tutorial git:(main) ✗ git pull
Username for 'https://github.com': hnjfghjfhgj
Password for 'https://ghjghjgh@github.com':
Уже обновлено.
import os
from elevate import elevate
def is_root():
return os.getuid() == 0
print("before ", is_root())
elevate()
print("after ", is_root())
Ошибка: return os.getuid() == 0
AttributeError: module 'os' has no attribute 'getuid'
Ошибка: evelate.elevate()
NameError: name 'evelate' is not defined
Ошибка: An exception has occurred, use %tb to see the full traceback.
SystemExit: 2