13 lines
250 B
Python
13 lines
250 B
Python
import logging
|
|
import sys
|
|
|
|
from easyprocess import EasyProcess
|
|
|
|
python = sys.executable
|
|
|
|
# turn on logging
|
|
logging.basicConfig(level=logging.DEBUG)
|
|
|
|
EasyProcess([python, "--version"]).call()
|
|
EasyProcess(["ping", "localhost"]).start().sleep(1).stop()
|