Add `DEBUG=1` Commands To Windows?
I'm trying to use kaki library with kivy and python but to use it you need to run DEBUG=1 python main.py but I'm facing this error DEBUG=1 : The term 'DEBUG=1' is not recognized a
Solution 1:
In PowerShell, you can write to an environment variable which will be inherited by child processes, like this:
PS ~> $env:DEBUG = 1
PS ~> python main.py
Or as two statements on a single line:
$env:DEBUG = 1; python main.py
Python will now get the value 1
when resolving the DEBUG
environment variable
In cmd.exe
you can use the set
keyword:
C:\> set "DEBUG=1" && python main.py
Post a Comment for "Add `DEBUG=1` Commands To Windows?"