1 #!/usr/bin/env python3 |
1 #!/usr/bin/env python3 |
2 # -*- coding: utf-8 -*- |
2 # -*- coding: utf-8 -*- |
3 |
3 |
4 # Copyright (c) 2004 - 2010 Detlev Offenbach <detlev@die-offenbachs.de> |
4 # Copyright (c) 2004 - 2010 Detlev Offenbach <detlev@die-offenbachs.de> |
5 # |
5 # |
6 # This is the install script for eric4's translation files. |
6 # This is the install script for eric5's translation files. |
7 |
7 |
8 """ |
8 """ |
9 Installation script for the eric4 IDE translation files. |
9 Installation script for the eric5 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 from PyQt4.QtCore import QDir |
17 from PyQt4.QtCore import QDir |
18 |
18 |
19 try: |
19 try: |
20 from .eric4config import getConfig |
20 from .eric5config import getConfig |
21 except ImportError: |
21 except ImportError: |
22 print("The eric4 IDE doesn't seem to be installed. Aborting.") |
22 print("The eric5 IDE doesn't seem to be installed. Aborting.") |
23 sys.exit(1) |
23 sys.exit(1) |
24 |
24 |
25 def getConfigDir(): |
25 def getConfigDir(): |
26 """ |
26 """ |
27 Global function to get the name of the directory storing the config data. |
27 Global function to get the name of the directory storing the config data. |