src
catkin_virtualenv
__init__.py
Go to the documentation of this file.
1
# Software License Agreement (GPL)
2
#
3
# \file __init__.py
4
# \authors Paul Bovbel <pbovbel@locusrobotics.com>
5
# \copyright Copyright (c) (2017,), Locus Robotics, All rights reserved.
6
#
7
# This program is free software: you can redistribute it and/or
8
# modify it under the terms of the GNU General Public License as
9
# published by the Free Software Foundation, either version 2 of the
10
# License, or (at your option) any later version.
11
#
12
# This program is distributed in the hope that it will be useful, but
13
# WITHOUT ANY WARRANTY; without even the implied warranty of
14
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
# General Public License for more details.
16
#
17
# You should have received a copy of the GNU General Public License
18
# along with this program. If not, see <http://www.gnu.org/licenses/>.
19
20
import
logging
21
import
subprocess
22
import
rosgraph.roslogging
23
24
logger = logging.getLogger(__name__)
25
26
27
def
configure_logging
():
28
rosgraph.roslogging.configure_logging(
'catkin_virtualenv'
)
29
return
logging.getLogger()
30
31
32
def
run_command
(cmd, *args, **kwargs):
33
logger.info(
" "
.join(cmd))
34
if
kwargs.pop(
"capture_output"
,
False
):
35
kwargs[
"stdout"
] = subprocess.PIPE
36
kwargs[
"stderr"
] = subprocess.PIPE
37
return
subprocess.run(cmd, *args, **kwargs)
catkin_virtualenv.run_command
def run_command(cmd, *args, **kwargs)
Definition:
__init__.py:32
catkin_virtualenv.configure_logging
def configure_logging()
Definition:
__init__.py:27
catkin_virtualenv
Author(s): Paul Bovbel
autogenerated on Mon Mar 17 2025 02:35:33