Skip to content

Commit

Permalink
Version 1.2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
ARTEZON committed Feb 17, 2023
1 parent df498a2 commit 924c057
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 deletions.
11 changes: 4 additions & 7 deletions TGIDownloader_EN.py
Original file line number Diff line number Diff line change
Expand Up @@ -504,13 +504,10 @@ def main():
if platform == 'win32':
os.system('title Telegraph Image Downloader')
if os.getcwd().lower() == os.path.join('C:', os.sep, 'Windows', 'system32').lower():
try:
os.chdir(os.path.dirname(os.path.abspath(__file__)))
except Exception:
print('Please run the program from another directory.')
print('\nPress Enter to exit.')
wait_for_enter_key('')
os._exit(0)
print('Please run the program from another directory.')
print('\nPress Enter to exit.')
wait_for_enter_key('')
os._exit(0)
while True:
try:
os.system('cls' if platform == 'win32' else 'clear')
Expand Down
11 changes: 4 additions & 7 deletions TGIDownloader_RU.py
Original file line number Diff line number Diff line change
Expand Up @@ -504,13 +504,10 @@ def main():
if platform == 'win32':
os.system('title Telegraph Image Downloader')
if os.getcwd().lower() == os.path.join('C:', os.sep, 'Windows', 'system32').lower():
try:
os.chdir(os.path.dirname(os.path.abspath(__file__)))
except Exception:
print('Пожалуйста, запустите программу из другой директории.')
print('\nДля продолжения нажмите Enter.')
wait_for_enter_key('')
os._exit(0)
print('Пожалуйста, запустите программу из другой директории.')
print('\nДля продолжения нажмите Enter.')
wait_for_enter_key('')
os._exit(0)
while True:
try:
os.system('cls' if platform == 'win32' else 'clear')
Expand Down

0 comments on commit 924c057

Please sign in to comment.