Skip to content
This repository was archived by the owner on Mar 3, 2024. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# encoding=utf8
from setuptools import setup
from codecs import open
import platform
Expand All @@ -23,7 +23,7 @@ def run_tests(self):
sys.exit(errno)

def mkdir_p(path):
#thanks http://stackoverflow.com/a/600612/965638

try:
os.makedirs(path)
except OSError as exc: # Python >2.5
Expand Down Expand Up @@ -51,7 +51,8 @@ def mkdir_p(path):
'platform/ubuntu/fgmk-map.svg']),
('share/mime', ['platform/ubuntu/fgmk.xml'])])

with open('fgmk/__init__.py', 'r') as fd:

with open('fgmk/__init__.py', 'r', encoding="utf-8") as fd:
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
fd.read(), re.MULTILINE).group(1)

Expand Down