We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78b64b5 commit fd63325Copy full SHA for fd63325
src/RobotOS.jl
@@ -2,13 +2,17 @@ module RobotOS
2
3
using PyCall
4
5
+#Empty imported modules for valid precompilation
6
+const __sys__ = PyCall.PyNULL()
7
+const __rospy__ = PyCall.PyNULL()
8
+
9
function __init__()
10
#Put julia's ARGS into python's so remappings will work
- global const __sys__ = pyimport("sys")
11
+ copy!(__sys__, pyimport("sys"))
12
__sys__["argv"] = ARGS
13
- global const __rospy__ = try
- pyimport("rospy")
14
+ try
15
+ copy!(__rospy__, pyimport("rospy"))
16
catch ex
17
if (isa(ex, PyCall.PyError) &&
18
pycall(pybuiltin("str"), PyAny, ex.val) == "No module named rospy")
0 commit comments