[gegl] Make cltostring.py work with absolute paths
- From: Daniel Sabo <daniels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] Make cltostring.py work with absolute paths
- Date: Sun, 27 Oct 2013 16:57:03 +0000 (UTC)
commit d164cd7f49f91de4fcbb65581ca8ef67e2d15032
Author: Daniel Sabo <DanielSabo gmail com>
Date: Sun Oct 27 05:19:40 2013 -0700
Make cltostring.py work with absolute paths
opencl/cltostring.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/opencl/cltostring.py b/opencl/cltostring.py
index 21350d8..d2f9b7c 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]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]