Skip to content
Permalink
Browse files

Fix osx parse file no data error

  • Loading branch information
zam1024t committed Oct 17, 2018
1 parent c036c7b commit 86e0bdc9ad408d1fe624fd77cf181808c40ad221
Showing with 5 additions and 4 deletions.
  1. +5 −4 Localize.py
@@ -204,10 +204,11 @@ def updateMenu(m):

def updateTopMenu(locale):
tDir = pkgs + os.sep + 'ZZZZZZZZ-' + pName
if locale[:2] == 'en':
if os.path.isdir(tDir):
shutil.rmtree(tDir)
return
if not (p == 'osx' and v == '2'):
if locale[:2] == 'en':
if os.path.isdir(tDir):
shutil.rmtree(tDir)
return
if not os.path.isdir(tDir):
os.makedirs(tDir)
topMenu = []

0 comments on commit 86e0bdc

Please sign in to comment.