no need to import the same thing twice

This commit is contained in:
monsta 2014-11-03 21:11:20 +03:00 committed by Monsta
parent 51873b120d
commit 2342eabb17

View File

@ -1419,7 +1419,6 @@ class pluginclass( object ):
def buildFavorites( self ): def buildFavorites( self ):
try: try:
from user import home
if (not os.path.exists(home + "/.linuxmint/mintMenu/applications.list")): if (not os.path.exists(home + "/.linuxmint/mintMenu/applications.list")):
os.system("mkdir -p " + home + "/.linuxmint/mintMenu/applications") os.system("mkdir -p " + home + "/.linuxmint/mintMenu/applications")
os.system("cp /usr/lib/linuxmint/mintMenu/applications.list " + home + "/.linuxmint/mintMenu/applications.list") os.system("cp /usr/lib/linuxmint/mintMenu/applications.list " + home + "/.linuxmint/mintMenu/applications.list")