repo.py
Go to the documentation of this file.
1 # License: Apache 2.0. See LICENSE file in root directory.
2 # Copyright(c) 2021 Intel Corporation. All Rights Reserved.
3 
4 import os
5 
6 # this script is located in librealsense/unit-tests/py/rspy, so main repository is:
7 root = os.path.dirname( os.path.dirname( os.path.dirname( os.path.dirname( os.path.abspath( __file__ )))))
8 
9 def pretty_fw_version( fw_version_as_string ):
10  """ return a version with zeros removed """
11  return '.'.join( [str(int(c)) for c in fw_version_as_string.split( '.' )] )
std::string join(const std::string &base, const std::string &path)
Definition: filesystem.h:113
def pretty_fw_version(fw_version_as_string)
Definition: repo.py:9


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:47:40