diff options
author | Daniel Sabo <DanielSabo@gmail.com> | 2013-10-27 05:19:40 -0700 |
---|---|---|
committer | Daniel Sabo <DanielSabo@gmail.com> | 2013-10-27 06:16:21 -0700 |
commit | d164cd7f49f91de4fcbb65581ca8ef67e2d15032 (patch) | |
tree | 2bb6b32621334acbc56b71818c64e76f8011dd45 /opencl | |
parent | 39515d58a9a212664966d7449dc0ff181834762c (diff) |
Make cltostring.py work with absolute paths
Diffstat (limited to 'opencl')
-rwxr-xr-x | opencl/cltostring.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/opencl/cltostring.py b/opencl/cltostring.py index 21350d81..d2f9b7c3 100755 --- a/opencl/cltostring.py +++ b/opencl/cltostring.py @@ -46,7 +46,7 @@ cl_source = infile.read() cl_source = do_includes(cl_source) infile.close() -string_var_name = sys.argv[1].replace("-", "_").replace(":", "_") +string_var_name = os.path.basename(sys.argv[1]).replace("-", "_").replace(":", "_") if string_var_name.endswith(".cl"): string_var_name = string_var_name[:-3] |