-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3636470
commit 510682e
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import os | ||
from zipfile import ZipFile | ||
|
||
import globalVars | ||
import gui | ||
import wx | ||
|
||
def onInstall(): | ||
for path, import_path in [ | ||
(os.path.join(os.path.dirname(__file__), "core", "VE.zip"), os.path.join(globalVars.appArgs.configPath, "WorldVoice-workspace", "VE")), | ||
(os.path.join(os.path.dirname(__file__), "core", "aisound.zip"), os.path.join(globalVars.appArgs.configPath, "WorldVoice-workspace", "aisound")), | ||
(os.path.join(os.path.dirname(__file__), "voice", "voice.zip"), os.path.join(globalVars.appArgs.configPath, "WorldVoice-workspace")), | ||
]: | ||
try: | ||
with ZipFile(path, 'r') as core_file: | ||
core_file.testzip() | ||
core_file.extractall(import_path) | ||
os.remove(path) | ||
except: | ||
pass | ||
else: | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters