mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
1) Automatically update installer version by using dvc.main.VERSION 2) Make build.cmd more verbose and handle errors better
15 lines
341 B
Python
15 lines
341 B
Python
# This script generates config.ini for setup.iss script
|
|
from dvc.main import VERSION
|
|
|
|
try:
|
|
import configparser as ConfigParser
|
|
except ImportError:
|
|
import ConfigParser
|
|
|
|
config = ConfigParser.ConfigParser()
|
|
config.add_section('Version')
|
|
config.set('Version', 'Version', VERSION)
|
|
|
|
with open('config.ini', 'w') as f:
|
|
config.write(f)
|