Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

negate if statement python

if not os.path.exists("/usr/share/sounds/blues") :
    proc = subprocess.Popen(["mkdir", "/usr/share/sounds/blues"])
    proc.wait()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #negate #statement #python
ADD COMMENT
Topic
Name
6+5 =