Skip to content

Commit d6f06a1

Browse files
committed
Fixed cargo manifest absolute path detection
1 parent bdb644e commit d6f06a1

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

CHANGES.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
CHANGES
22
=======
33

4+
0.4.1 (2017-03-10)
5+
------------------
6+
7+
- Fixed cargo manifest absolute path detection
8+
9+
410
0.4 (2017-03-10)
511
----------------
612

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from setuptools import setup
22

3-
version = '0.4'
3+
version = '0.4.1'
44

55

66
setup(

setuptools_rust/__init__.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,11 @@ def __init__(self, name, path,
6161
file = sys._getframe(1).f_globals.get('__file__')
6262
if file:
6363
dirname = os.path.dirname(file)
64-
cwd = os.getcwd()
65-
os.chdir(dirname)
66-
path = os.path.abspath(path)
67-
os.chdir(cwd)
64+
if dirname:
65+
cwd = os.getcwd()
66+
os.chdir(dirname)
67+
path = os.path.abspath(path)
68+
os.chdir(cwd)
6869

6970
self.path = path
7071

0 commit comments

Comments
 (0)