File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,9 @@ include("callbacks.jl")
18
18
function __init__ ()
19
19
# Put julia's ARGS into python's so remappings will work
20
20
copy! (_py_sys, pyimport (" sys" ))
21
- _py_sys." argv" = ARGS
21
+ if length (ARGS ) > 0
22
+ _py_sys. argv = ARGS
23
+ end
22
24
23
25
# Fill in empty PyObjects
24
26
if ! (dirname (@__FILE__ ) in _py_sys." path" )
Original file line number Diff line number Diff line change
1
+ import PyCall
2
+
1
3
# Test basic rospy interactions
2
4
init_node (" jltest" , anonymous= true )
3
5
@@ -32,3 +34,9 @@ RobotOS.get_node_uri()
32
34
RobotOS. get_caller_id ()
33
35
RobotOS. get_published_topics ()
34
36
RobotOS. get_ros_root ()
37
+
38
+ # Issue 73 - Corruption of Python sys.argv
39
+ PyCall. py """
40
+ import argparse
41
+ argparse.ArgumentParser()
42
+ """
You can’t perform that action at this time.
0 commit comments