Skip to content

Commit e733b20

Browse files
committed
absolute file path
1 parent abeafa7 commit e733b20

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

pusher/version.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Don't change the format of this line: the version is extracted by ../setup.py
2+
VERSION = '1.4rc3'

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
# -*- coding: utf-8 -*-
22
from setuptools import setup
3+
import os
34
import re
45

56
# Lovingly adapted from https://github.com/kennethreitz/requests/blob/39d693548892057adad703fda630f925e61ee557/setup.py#L50-L55
6-
with open('pusher/version.py', 'r') as fd:
7+
with open(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'pusher/version.py'), 'r') as fd:
78
VERSION = re.search(r'^VERSION = [\']([^\']*)[\']',
89
fd.read(), re.MULTILINE).group(1)
910

0 commit comments

Comments
 (0)