Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fix osx parse file no data error
- Loading branch information
Showing
with
5 additions
and
4 deletions.
-
+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 = [] |
|
|