summaryrefslogtreecommitdiff
path: root/modules/svg/SCsub
diff options
context:
space:
mode:
Diffstat (limited to 'modules/svg/SCsub')
-rw-r--r--modules/svg/SCsub7
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/svg/SCsub b/modules/svg/SCsub
index 0d3a347b7e..5be9367808 100644
--- a/modules/svg/SCsub
+++ b/modules/svg/SCsub
@@ -1,9 +1,10 @@
#!/usr/bin/env python
Import('env')
+from compat import isbasestring
# Thirdparty source files
-thirdparty_dir = "#thirdparty/nanosvg/src/"
+thirdparty_dir = "#thirdparty/nanosvg/"
thirdparty_sources = [
"nanosvg.cc"
]
@@ -18,7 +19,7 @@ lib = env.Library("svg_builtin", thirdparty_sources)
# and then plain strings for system library. We insert between the two.
inserted = False
for idx, linklib in enumerate(env["LIBS"]):
- if isinstance(linklib, basestring): # first system lib such as "X11", otherwise SCons lib object
+ if isbasestring(linklib): # first system lib such as "X11", otherwise SCons lib object
env["LIBS"].insert(idx, lib)
inserted = True
break
@@ -31,4 +32,4 @@ env.Append(CCFLAGS=["-DSVG_ENABLED"])
# Godot's own source files
env.add_source_files(env.modules_sources, "*.cpp")
-Export('env') \ No newline at end of file
+Export('env')