| import zipfile | |
| import os | |
| import subprocess | |
| def unzip_file(zip_filepath, dest_dir): | |
| with zipfile.ZipFile(zip_filepath, 'r') as zip_ref: | |
| zip_ref.extractall(dest_dir) | |
| def run_fetch(): | |
| subprocess.run(['python', 'fetch.py']) | |
| if __name__ == '__main__': | |
| run_fetch() | |
| print('code fetched') | |
| unzip_file('code.zip', '.') # The '.' specifies the current directory | |
| unzip_file('code2.zip', '.') | |
| print('code unzipped') | |
| subprocess.run(['python', 'tashkeel_app_avril2025_text_only_limited_text.py']) |