mirror of
https://github.com/lutris/lutris
synced 2024-09-05 23:46:21 +00:00
Remove fallback locale
This commit is contained in:
parent
32b1e33d5b
commit
36e72e3933
|
@ -11,13 +11,14 @@
|
|||
# You should have received a copy of the GNU General Public License along
|
||||
# with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
import os
|
||||
import sys
|
||||
import locale
|
||||
import os
|
||||
from os.path import realpath, dirname, normpath
|
||||
|
||||
LAUNCH_PATH = dirname(realpath(__file__))
|
||||
if os.path.isdir(os.path.join(LAUNCH_PATH,"../lutris")):
|
||||
|
||||
if os.path.isdir(os.path.join(LAUNCH_PATH, "../lutris")):
|
||||
sys.dont_write_bytecode = True
|
||||
SOURCE_PATH = normpath(os.path.join(LAUNCH_PATH, '..'))
|
||||
sys.path.insert(0, SOURCE_PATH)
|
||||
|
@ -27,8 +28,7 @@ else:
|
|||
try:
|
||||
locale.setlocale(locale.LC_ALL, "")
|
||||
except locale.Error:
|
||||
sys.stderr.write("Unsupported locale setting. Using 'C' as fallback locale.\n")
|
||||
locale.setlocale(locale.LC_ALL, "C")
|
||||
sys.stderr.write("Unsupported locale setting. Fix your locales\n")
|
||||
|
||||
from lutris.gui.application import Application
|
||||
|
||||
|
|
Loading…
Reference in a new issue