diff --git a/alpamon/__init__.py b/alpamon/__init__.py index 39f2173..210cc2e 100644 --- a/alpamon/__init__.py +++ b/alpamon/__init__.py @@ -1 +1 @@ -VERSION = '1.3.0' \ No newline at end of file +VERSION = '1.3.1' \ No newline at end of file diff --git a/alpamon/service.py b/alpamon/service.py index 11a2092..556803c 100644 --- a/alpamon/service.py +++ b/alpamon/service.py @@ -53,7 +53,7 @@ def get_resource_path(self, resource): return resource_filename(__name__, resource) def write_config(self): - with self.get_resource_path('config/%s.conf' % self.name).open('r') as f: + with open(self.get_resource_path('config/%s.conf' % self.name), 'r') as f: template = f.read() with open(self.conf_file, 'w') as f: @@ -73,7 +73,7 @@ def write_service(self): base_dir = '/usr/local' exec_start = os.path.join(base_dir, 'bin', self.name) - with self.get_resource_path('config/%s.service' % self.name).open('r') as f: + with open(self.get_resource_path('config/%s.service' % self.name), 'r') as f: template = f.read() with open(self.svc_file, 'w') as f: