mirror of
https://github.com/Erreur32/cheat.git
synced 2024-10-31 21:11:07 +01:00
Fix geteuid not existing on Windows
This commit is contained in:
parent
bc6e9ea8a9
commit
2f56270ded
@ -9,7 +9,7 @@ def default_path():
|
|||||||
# the default path becomes confused when cheat is run as root, so fail
|
# the default path becomes confused when cheat is run as root, so fail
|
||||||
# under those circumstances. (There is no good reason to need to run cheat
|
# under those circumstances. (There is no good reason to need to run cheat
|
||||||
# as root.)
|
# as root.)
|
||||||
if os.geteuid() == 0:
|
if os.name != 'nt' and os.geteuid() == 0:
|
||||||
die('Please do not run this application as root.');
|
die('Please do not run this application as root.');
|
||||||
|
|
||||||
# determine the default cheatsheet dir
|
# determine the default cheatsheet dir
|
||||||
|
Loading…
Reference in New Issue
Block a user