summaryrefslogtreecommitdiffhomepage
path: root/src/singleheader.py
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2023-02-05 11:20:08 +0100
committerTyge Løvset <[email protected]>2023-02-05 11:20:08 +0100
commitff5a1bf4a623cf528e8b601959da993917e79c04 (patch)
tree9b071b64d0abe7f0c752c14f6582f6584c62a3a0 /src/singleheader.py
parentadc47cefc2976768c3f0b773bd26bfd1062e8a53 (diff)
downloadSTC-modified-ff5a1bf4a623cf528e8b601959da993917e79c04.tar.gz
STC-modified-ff5a1bf4a623cf528e8b601959da993917e79c04.zip
- Updated cspan.h to allow for compiling some functions as shared symbols.
- Fixed issue #45 warning -Wunused-parameter in clist.h - Fixed some issues with the singleheader.py generator.
Diffstat (limited to 'src/singleheader.py')
-rw-r--r--src/singleheader.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/singleheader.py b/src/singleheader.py
index f5272cfb..2255568d 100644
--- a/src/singleheader.py
+++ b/src/singleheader.py
@@ -5,15 +5,15 @@ import sys
import os
from os.path import dirname, join as path_join, abspath, basename, exists
-extra_paths = [path_join(dirname(abspath(__file__)), "include")]
-
+top_dir = dirname(abspath(__file__))
+extra_paths = [path_join(top_dir, 'include'), path_join(top_dir, '..', 'include')]
def find_file(included_name, current_file):
current_dir = dirname(abspath(current_file))
for idir in [current_dir] + extra_paths:
try_path = path_join(idir, included_name)
if exists(try_path):
- return try_path
+ return abspath(try_path)
return None