Fix subtle rstrip bug.

This commit is contained in:
Stefan van der Walt
2009-11-02 22:49:28 +02:00
parent c118add062
commit 7770e393e0
+1 -1
View File
@@ -20,7 +20,7 @@ def cython(pyx_files, working_path=''):
else:
for pyxfile in [os.path.join(working_path, f) for f in pyx_files]:
# make a backup of the good c files
c_file = pyxfile.rstrip('pyx') + 'c'
c_file = pyxfile[:-4] + 'c'
c_file_new = c_file + '.new'
# run cython compiler