kivy/doc/sources
pwoolvett 88dee323b7
Fix/disable kivy no args (#7326)
* FIX: Disable `KIVY_NO_ARGS` depending on its value

This fix enables the environment value `KIVY_NO_ARGS` to be present but still
not disabling kivy cli parsing.

Before this, kivy only checked for `KIVY_NO_ARGS` environment variable to be
existent, wihout checking its value. Setting it to a "falsy" value (eg 0,
"false", etc) would still disable cli arg parsing, which is could be
misleading.

With this fix, only setting it to one of ('true', '1', 'yes') actually
disables it.

* TEST: passing unit tests

Signed-off-by: Pablo Woolvett <pablowoolvett@gmail.com>

* implemented suggestions

* updated patchenv func
* added `KIVY_ENVS_TO_EXCLUDE = ('KIVY_UNITTEST', 'KIVY_PACKAGING')` because `__init__.py` treats them equal. 
* removed remanent lower

* FIX: web edit typos

Signed-off-by: Pablo Woolvett <pablowoolvett@gmail.com>

* PEP8

Signed-off-by: Pablo Woolvett <pablowoolvett@gmail.com>

* FMT: auto (black) + unused imports

Signed-off-by: Pablo Woolvett <pablowoolvett@gmail.com>

* PEP8

Signed-off-by: Pablo Woolvett <pablowoolvett@gmail.com>

* FIX: nonzero exit on subprocess import

Signed-off-by: Pablo Woolvett <pablowoolvett@gmail.com>

* Update kivy/tests/test_environ_cli.py

Co-authored-by: matham <moiein2000@gmail.com>

* Update kivy/tests/test_environ_cli.py

Co-authored-by: matham <moiein2000@gmail.com>

Co-authored-by: matham <moiein2000@gmail.com>
2021-01-11 19:16:20 -05:00
..
.static Fix css on docs 2020-01-17 13:39:22 +01:00
.templates Doc cleanups (#7295) 2020-12-29 10:53:27 -05:00
examples Add doc/sources/examples/README file. 2015-02-11 20:51:31 -08:00
gettingstarted Merge pull request #7241 from matham/install 2020-11-28 17:43:08 -05:00
guide Fix/disable kivy no args (#7326) 2021-01-11 19:16:20 -05:00
images Add changelog and fix install table. 2020-11-28 17:40:57 -05:00
installation Re-write install docs. 2020-11-28 03:36:39 -05:00
sphinxext
tutorials doc: refinements to crashcourse docs 2016-08-18 23:28:34 +02:00
changelog.rst Add 2.0.0 changelog. 2020-12-09 04:56:51 -05:00
conf.py Add changelog and fix install table. 2020-11-28 17:40:57 -05:00
contact.rst Replace IRC with Discord 2018-09-27 11:25:23 +03:00
contents.rst.inc Add changelog and fix install table. 2020-11-28 17:40:57 -05:00
contribute-unittest.rst Update docs referring the change from nose tests to pytest 2019-03-09 13:48:56 +01:00
contribute.rst Add pre-commit.com framework hooks (#7176) 2020-12-09 22:48:48 -05:00
faq.rst Update docs for kivy-ios 2020-12-25 16:50:37 +01:00
gsoc.rst Replace IRC with Discord 2018-09-27 11:25:23 +03:00
gsoc2014.rst Fix remaining misspellings 2016-09-07 11:23:44 +02:00
gsoc2015.rst Fix remaining misspellings 2016-09-07 11:23:44 +02:00
gsoc2016.rst begin new gsoc page for 2017 2017-02-05 17:36:40 -08:00
guide-index.rst doc: Remove empty Best Practices 2017-03-28 21:07:40 +02:00
index.rst Updated copyright year in doc index 2018-05-12 14:37:02 +01:00
kivy-logo.png Optimize doc images with trimage 2014-11-16 12:55:28 +02:00
kivystyle.sty Bring sdl2 in line with current master and other fixes to make things usable. Sponsored by ScramSoft. 2014-08-23 17:15:04 +05:30
logo.png Optimize doc images with trimage 2014-11-16 12:55:28 +02:00
philosophy.rst doc: remove repetition. closes #1424 2013-08-15 10:34:23 +02:00
tutorials-index.rst Add Crash Course to tutorials 2016-05-10 23:47:50 +02:00
user-guide.rst Remove duplicate installation instructions. 2019-05-07 19:30:39 -04:00