summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/scripts/pythontex/depythontex2.py
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2014-07-20 22:15:27 +0000
committerKarl Berry <karl@freefriends.org>2014-07-20 22:15:27 +0000
commit2ae660fc4775456c4c1344061dc0b6cd7af28276 (patch)
tree8634639183e76d8647467445e371ce4bea3835b1 /Master/texmf-dist/scripts/pythontex/depythontex2.py
parent97666739085cbc6593468e7f5a2cc04f2eaf0de2 (diff)
pythontex (20jul14)
git-svn-id: svn://tug.org/texlive/trunk@34673 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/scripts/pythontex/depythontex2.py')
-rwxr-xr-xMaster/texmf-dist/scripts/pythontex/depythontex2.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Master/texmf-dist/scripts/pythontex/depythontex2.py b/Master/texmf-dist/scripts/pythontex/depythontex2.py
index cc6f30b0a68..155df48d510 100755
--- a/Master/texmf-dist/scripts/pythontex/depythontex2.py
+++ b/Master/texmf-dist/scripts/pythontex/depythontex2.py
@@ -86,7 +86,7 @@ import codecs
# Script parameters
# Version
-version = 'v0.13'
+__version__ = '0.14'
# Functions and parameters for customizing the script output
@@ -674,7 +674,7 @@ def replace_print_env(name, arglist, linenum,
# Parse argv
parser = argparse.ArgumentParser()
parser.add_argument('--version', action='version',
- version='DePythonTeX {0}'.format(version))
+ version='DePythonTeX {0}'.format(__version__))
parser.add_argument('--encoding', default='utf-8',
help='encoding for all text files (see codecs module for encodings)')
parser.add_argument('--overwrite', default=False, action='store_true',
@@ -726,7 +726,7 @@ elif args.listing == 'pythontex':
# Let the user know things have started
if args.output is not None:
- print('This is DePythonTeX {0}'.format(version))
+ print('This is DePythonTeX {0}'.format(__version__))
sys.stdout.flush()
@@ -792,7 +792,7 @@ while depytx[n].startswith('=>DEPYTHONTEX:SETTINGS#'):
depytx[n] = ''
n -= 1
# Check .depytx version to make sure it is compatible
-if settings['version'] != version:
+if settings['version'] != __version__:
print('* DePythonTeX warning:')
print(' Version mismatch with DePythonTeX auxiliary file')
print(' Do a complete compile cycle to update the auxiliary file')