1 #!/usr/bin/env python3 |
1 #!/usr/bin/env python3 |
2 # -*- coding: utf-8 -*- |
2 # -*- coding: utf-8 -*- |
3 |
3 |
4 # Copyright (c) 2004 - 2021 Detlev Offenbach <detlev@die-offenbachs.de> |
4 # Copyright (c) 2004 - 2021 Detlev Offenbach <detlev@die-offenbachs.de> |
5 # |
5 # |
6 # This is the install script for eric6's translation files. |
6 # This is the install script for eric's translation files. |
7 |
7 |
8 """ |
8 """ |
9 Installation script for the eric6 IDE translation files. |
9 Installation script for the eric IDE translation files. |
10 """ |
10 """ |
11 |
11 |
12 import sys |
12 import sys |
13 import os |
13 import os |
14 import shutil |
14 import shutil |
15 import glob |
15 import glob |
16 |
16 |
17 try: |
17 try: |
18 from eric6config import getConfig |
18 from eric6config import getConfig |
19 except ImportError: |
19 except ImportError: |
20 print("The eric6 IDE doesn't seem to be installed. Aborting.") |
20 print("The eric IDE doesn't seem to be installed. Aborting.") |
21 sys.exit(1) |
21 sys.exit(1) |
22 except SyntaxError: |
22 except SyntaxError: |
23 # an incomplete or old config file was found |
23 # an incomplete or old config file was found |
24 print("The eric6 IDE seems to be installed incompletely. Aborting.") |
24 print("The eric IDE seems to be installed incompletely. Aborting.") |
25 sys.exit(1) |
25 sys.exit(1) |
26 |
26 |
27 |
27 |
28 def getConfigDir(): |
28 def getConfigDir(): |
29 """ |
29 """ |