Skip to content

Commit 71755bc

Browse files
authored
Merge pull request #500 from CEED/jed/fix-magma-path
magma: fix path processing when parent directory contains a '.'
2 parents 9e662d0 + a2d78a6 commit 71755bc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

backends/magma/gccm.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
#
3030
################################################################################
3131
import sys
32+
import os
3233

3334
def main():
3435
# The source file is the 1st argument to the script
@@ -42,7 +43,7 @@ def main():
4243
file.close()
4344

4445
fname = sys.argv[1]
45-
fname = fname[:fname.find(".")]
46+
fname = os.path.splitext(fname)[0]
4647
cfile = open(fname + "_tmp.c" , "w")
4748
cufile = open(fname + "_cuda.cu", "w")
4849

0 commit comments

Comments
 (0)