code cleaning

This commit is contained in:
Francois B (Makoto) 2017-09-29 18:32:34 +02:00
parent 1f431983b3
commit d0339098f3

View file

@ -7,11 +7,8 @@ Author : Francois B (Makoto)
Licence : GPL3 Licence : GPL3
""" """
import os
import subprocess import subprocess
currentDir = os.path.dirname(os.path.abspath(__file__))
def mozDefragFirefox(): # Firefox defrag def mozDefragFirefox(): # Firefox defrag
@ -29,7 +26,7 @@ def mozDefragThunderbird(): # Thunderbird defrag
cmd2exec += "do sqlite3 $f 'VACUUM;';" cmd2exec += "do sqlite3 $f 'VACUUM;';"
cmd2exec += "done" cmd2exec += "done"
cmdOutput = str(subprocess.check_output(cmd2exec, cmdOutput = str(subprocess.check_output(cmd2exec,
shell=True).decode("utf-8")) shell=True).decode("utf-8"))
return cmdOutput return cmdOutput