someone needs to write an editor that has a hotkey to disable the mouse pasting. it's gonna be a looong day.

This commit is contained in:
brent s 2017-09-09 12:26:30 -04:00
parent 3869b30198
commit 5ad4f0bda8
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ def destPrep():
# pass # thisisfine.jpg
os.makedirs(nowdir, exist_ok = True)
if getpass.getuser() == 'root':
uid = getpwnam(sks['user']).pw_uidFileNotFoundError
uid = getpwnam(sks['user']).pw_uid
gid = getgrnam(sks['group']).gr_gid
for d in (sks['destdir'], nowdir): # we COULD set it as part of the os.makedirs, but iirc it doesn't set it for existing dirs
os.chown(d, uid, gid)