Skip to content

Commit 3c634d1

Browse files
committed
Add Compat if needed to generated modules
1 parent 8fb13e8 commit 3c634d1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/gentypes.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,12 @@ function modulecode(mod::ROSModule)
285285
modcode = Expr[]
286286

287287
#Common imports
288+
if VERSION < v"0.4-"
289+
push!(modcode,
290+
quote
291+
using Compat
292+
end)
293+
end
288294
push!(modcode,
289295
quote
290296
using PyCall

0 commit comments

Comments
 (0)