GUI: Fix the profile deleter script
Instead of hardcoding a path, use `tuned.consts.USER_PROFILES_DIR` as the location where we should expect to find profile directories that we've been asked to delete.
This commit is contained in:
parent
889387b000
commit
c82101f03a
1 changed files with 7 additions and 1 deletions
|
|
@ -2,6 +2,12 @@ import os
|
|||
import sys
|
||||
import shutil
|
||||
|
||||
import tuned.consts
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
shutil.rmtree('/etc/tuned/%s' % (os.path.basename(os.path.abspath(sys.argv[1]))))
|
||||
shutil.rmtree(
|
||||
os.path.join(
|
||||
tuned.consts.USER_PROFILES_DIR,
|
||||
os.path.basename(os.path.abspath(sys.argv[1]))
|
||||
))
|
||||
|
|
|
|||
Loading…
Reference in a new issue