src/pyams_utils/tests/__init__.py
branchdev-tf
changeset 427 63284c98cdc1
parent 367 2c95d34496f5
child 435 4504a27af426
equal deleted inserted replaced
426:2022e4da3ad9 427:63284c98cdc1
    20 
    20 
    21 import os
    21 import os
    22 import sys
    22 import sys
    23 
    23 
    24 
    24 
    25 def get_package_dir(input):
    25 def get_package_dir(value):
    26     """Get package directory"""
    26     """Get package directory"""
    27 
    27 
    28     package_dir = os.path.split(input)[0]
    28     package_dir = os.path.split(value)[0]
    29     if package_dir not in sys.path:
    29     if package_dir not in sys.path:
    30         sys.path.append(package_dir)
    30         sys.path.append(package_dir)
    31     return package_dir
    31     return package_dir