Skip to contentSkip to conversation

dev-manual: pass False to d.getVar() for devpyshell example

PATCH In review Robert P. J. Day 3 participants 3 messages Aug 30, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dev-manual: pass False to d.getVar() for devpyshell example

In the example in section 3.9, the call to d.getVar() needs to have the additional arugment of "False" so that the output is not expanded.

---

pretty sure it works this way.

documentation/dev-manual/common-tasks.rst +1 -1
index 4a5011ea7..f3b508443 100644
@@ -3486,7 +3486,7 @@ functions::
 
    pydevshell> d.getVar("STAGING_DIR")
    '/media/build1/poky/build/tmp/sysroots'
-   pydevshell> d.getVar("STAGING_DIR")
+   pydevshell> d.getVar("STAGING_DIR", False)
    '${TMPDIR}/sysroots'
    pydevshell> d.setVar("FOO", "bar")
    pydevshell> d.getVar("FOO")
Signature · 6 lines
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                         http://crashcourse.ca

LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================
Reviewed-by on v1 1/1
#1 lore raw

Hi Robert,

Quoted 10 lines · Robert P. J. Day

In the example in section 3.9, the call to d.getVar() needs to have the additional arugment of "False" so that the output is not expanded.

---

pretty sure it works this way.

The second positional argument is indeed "expand", which by default is true.

Thanks!
Quentin

#2 lore raw
Quoted 8 lines · Quentin Schulz

Hi Robert,

Quoted 5 lines · Robert P. J. Day

In the example in section 3.9, the call to d.getVar() needs to have the additional arugment of "False" so that the output is not expanded.

Quoted 8 lines
Quoted 4 lines

---

pretty sure it works this way.

The second positional argument is indeed "expand", which by default is true.

Now merged in "master-next".

Thanks for the patch and the review!

Michael.

Signature · 3 lines
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com