forked from morevnaproject-org/papagayo-ng
-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove Torch Tests. And create a little script which prepares a directory with just the needed project files for Papagayo-NG to save space.
- Loading branch information
Stefan Murawski
committed
Aug 10, 2021
1 parent
0825db3
commit 4efe61e
Showing
2 changed files
with
40 additions
and
6 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
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,32 @@ | ||
import os | ||
import shutil | ||
|
||
|
||
def main(): | ||
source_dir = os.getcwd() | ||
new_dir = os.path.join(os.getcwd(), "app_image_build") | ||
if not os.path.exists(new_dir): | ||
os.makedirs(new_dir) | ||
else: | ||
shutil.rmtree(new_dir) | ||
os.makedirs(new_dir) | ||
list_of_files = ["papagayo-ng.py", "Rhubarb.py", "AboutBoxQT.py", | ||
"MouthViewQT.py", "utilities.py", "SettingsQT.py", | ||
"PronunciationDialogQT.py", "SoundPlayerNew.py", | ||
"SoundPlayerOSX.py", "SoundPlayerQT.py", | ||
"WaveformViewRewrite.py", "papagayongrcc.py", | ||
"LipsyncDoc.py", "LipsyncFrameQT.py", | ||
"auto_recognition.py", "SoundPlayer.py", "gpl.txt", | ||
"papagayo-ng.ico", "ipa_cmu.json", "version_information.txt", "file_version_info.txt", | ||
"qt-icons.qrc", "readme.md", "about_markdown.html", | ||
"rsrc/", "breakdowns/", "phonemes/", "requirements.txt"] | ||
|
||
for file_name in list_of_files: | ||
if file_name.endswith(r"/"): | ||
shutil.copytree(os.path.join(source_dir, file_name), os.path.join(new_dir, file_name)) | ||
else: | ||
shutil.copy(os.path.join(source_dir, file_name), os.path.join(new_dir, file_name)) | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |