summaryrefslogtreecommitdiff
path: root/src/lexer.l
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2013-03-28 03:55:51 (GMT)
committerMarius Kintel <marius@kintel.net>2013-03-28 03:55:51 (GMT)
commiteefcd6d0b271642d470cd55bc47d1579d943938e (patch)
tree48f9e4db455879025adb9317b740bfa4b72c2d66 /src/lexer.l
parentf70578f362c8c2c78036c9de846c20802ac7aa81 (diff)
parentbeff2b1f4811b7f9d2b58bfc6a469a363bc9bfd0 (diff)
Merge branch 'master' into epec-kernel
Conflicts: src/PolySetCGALEvaluator.cc
Diffstat (limited to 'src/lexer.l')
-rw-r--r--src/lexer.l8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lexer.l b/src/lexer.l
index 63b0047..4dff654 100644
--- a/src/lexer.l
+++ b/src/lexer.l
@@ -225,6 +225,14 @@ void includefile()
finfo = locate_file((fs::path(filepath) / filename).string());
}
+ if (!exists(finfo) || finfo.empty()) {
+ // deal with some unusual situations with is_absolute() and Wine
+ fs::path fnp( fs::path(filepath) / filename );
+ if (fs::exists( fnp ) && !fs::is_directory( fnp )) {
+ finfo = fnp;
+ }
+ }
+
if (finfo.empty()) {
PRINTB("WARNING: Can't find 'include' file '%s'.", filename);
}
contact: Jan Huwald // Impressum