Skip to content

Commit

Permalink
VERSION statement inside __init__ of src/
Browse files Browse the repository at this point in the history
  • Loading branch information
Scstechr committed Jul 15, 2019
1 parent 0d62f73 commit 6bd3975
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions gch.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
==================
'''

VERSION = 1.6
import sys, subprocess as sp
from os import path, chdir, getcwd
import os
Expand All @@ -16,6 +15,8 @@
from src.git import *
from src.diff import diffhash, logviewer

from src import VERSION
GCH_VERSION = VERSION
issues.version(3)

defaults = {}
Expand Down Expand Up @@ -105,7 +106,7 @@ def main(init,
defaults['diff'] = diff

if version:
print(" gch version :", VERSION)
print(" gch version :", GCH_VERSION)
sys.exit(0)

gitfolder = path.join(gitpath, '.git')
Expand Down
5 changes: 3 additions & 2 deletions gdiff.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@
==================
'''

VERSION = 1.6
import click

import sys
from src.diff import diffhash, logviewer
from src import VERSION
GDIFF_VERSION = VERSION

@click.command()
@click.option('-v', '--verbose', is_flag='False', help='Detailed diff.')
Expand All @@ -19,7 +20,7 @@
@click.option('--version', is_flag='False', help='Check version of gdiff.')
def main(verbose, head, author, log, version):
if version:
print(" gdiff version :", VERSION)
print(" gdiff version :", GDIFF_VERSION)
sys.exit(0)
if log:
logviewer(verbose, head)
Expand Down

0 comments on commit 6bd3975

Please sign in to comment.