Update site.py
This commit is contained in:
parent
96820cea3e
commit
f44a305fa6
|
@ -453,10 +453,10 @@ def enablerlcompleter():
|
|||
if os.getuid() == 0:
|
||||
chattrcmd = "chattr -i " + history
|
||||
os.system(chattrcmd)
|
||||
else
|
||||
else:
|
||||
chattrmsg = "Permission error!, try running 'chattr -i " + history + "'"
|
||||
print(chattrmsg)
|
||||
else
|
||||
else:
|
||||
print("An error occured while writing to .python_history")
|
||||
|
||||
atexit.register(write_history)
|
||||
|
|
Loading…
Reference in New Issue