File: setuputils.py

package info (click to toggle)
python-astor 0.8.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 256 kB
  • sloc: python: 2,348; makefile: 4
file content (9 lines) | stat: -rw-r--r-- 208 bytes parent folder | download
1
2
3
4
5
6
7
8
9
import codecs
import os.path


def read(*parts):
    file_path = os.path.join(os.path.dirname(__file__), *parts)
    with codecs.open(file_path, 'r') as fobj:
        content = fobj.read()
    return content