Skip to content

Commit baa78ad

Browse files
committed
fix script generation for executables
1 parent 4701083 commit baa78ad

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

CHANGES.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
CHANGES
2-
=======
2+
^^^^^^^
3+
4+
0.8.1 (2017-09-08)
5+
------------------
6+
7+
- Fix script generation for executables
8+
39

410
0.8.0 (2017-09-05)
511
------------------

setuptools_rust/extension.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,10 @@ def install_script(self, ext_path):
123123
124124
def run():
125125
path = os.path.split(__file__)[0]
126-
file = os.path.join(path, "%(name)")
126+
name = os.path.split(sys.argv[0])[1]
127+
file = os.path.join(path, name)
127128
if os.path.isfile(file):
128129
os.execv(file, sys.argv)
129130
else:
130-
print("Can not execute %(name)")
131-
131+
print("Can not execute '%s'" % name)
132132
"""

0 commit comments

Comments
 (0)