<commit_before>'''
The Acspy package contains 90% of all ACS Python code. The subpackages
here contain APIs to:
- connect to components
- connect to standard CORBA services
- create components
- access notification channels
- access the ACS logging service
- etc

Basically everything that can be found in the C++ and Java APIs
can also be found here. The big exception to this is there no
XML support at the moment.
'''

__revision__ = "$Id: __init__.py,v 1.3 2005/02/23 00:04:55 dfugate Exp $"<commit_msg>Now that part of the python packages have been moved from here to acspycommon, we need to set Acspy.__path__ in order to find the packages that belong to Acspy but are installed separately acspycommon.<commit_after>'''
The Acspy package contains 90% of all ACS Python code. The subpackages
here contain APIs to:
- connect to components
- connect to standard CORBA services
- create components
- access notification channels
- access the ACS logging service
- etc

Basically everything that can be found in the C++ and Java APIs
can also be found here. The big exception to this is there no
XML support at the moment.
'''
__revision__ = "$Id: __init__.py,v 1.4 2012/03/07 17:42:14 acaproni Exp $"

import os
import string
from AcsutilPy import FindFile



# The Acspy python package is splitted in 2 ACS modules and this might cause 
# problems in the case the first part (from acspycommon) is in the $INTROOT
# and the other part is in the local folder.
#
# To fix this problem we need to add to Acspy.__path__ the folder where
# the missing part of Acspy is installed.

# The folder where Acspy is installed
pkgFolder=__path__[0]

# Check if Acspy packages generated by acspycommon are in the module (in pkgFolder)
files=os.listdir(pkgFolder)
if files.count('Common')==0:
    dir=FindFile.findFile("lib/python/site-packages/Acspy/Common")
    if dir[0]!='' and dir[3]:
        pathDir=string.rstrip(dir[0], '/Common')
        __path__.append(pathDir)
{'fraction_non_alphanumeric': 0.06996935648621042, 'fraction_numerical': 0.021450459652706845, 'mean_word_length': 4.196286472148541, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3426135', 'n_tokens_mistral': 607, 'n_tokens_neox': 564, 'n_words': 276}