File: pre_gen_project.py

package info (click to toggle)
python-azure 2.0.0~rc6%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 269,052 kB
  • ctags: 9,428
  • sloc: python: 81,857; makefile: 149
file content (9 lines) | stat: -rw-r--r-- 232 bytes parent folder | download
1
2
3
4
5
6
7
8
9
import sys

package_name = '{{cookiecutter.package_name}}'

if not package_name.startswith('azure-mgmt-'):
    print('ERROR: package name must start with "azure-mgmt-"')

    # exits with status 1 to indicate failure
    sys.exit(1)