Changeset - 616c96178973
[Not reviewed]
src/diana/__init__.py
Show inline comments
 
file renamed from src/__init__.py to src/diana/__init__.py
src/diana/config.py
Show inline comments
 
file renamed from src/config.py to src/diana/config.py
 
import os
 
from argparse import ArgumentParser
 

	
 

	
 
progName="DianaXO"
 
version=(0,0,0)
 
version=(0,1,0)
 

	
 
curDir=os.path.dirname(__file__)
 

	
 
parser=ArgumentParser()
 
parser.add_argument("--encoding")
 
parser.add_argument("-s","--suffix")
 
parser.add_argument("-r","--recursive")
 
parser.add_argument("-i","--input", nargs="+", required=True)
 
parser.add_argument("-o","--output")
 
parser.add_argument("--format", choices={"svg"})
 
parser.add_argument("-k","--keep-broken")
 
parser.add_argument("--moves-p-d", type=int)
 
parser.add_argument("--min-p-d", type=int)
 
parser.add_argument("--version", action="version", version="{0} {1}.{2}.{3}".format(progName,*version))
 

	
 
args=parser.parse_args()
 

	
 

	
 
inputFiles=args.input
 
encoding=args.encoding or "utf-8-sig"
 
sgfSuffix=args.suffix if args.suffix is not None else True
 
recursive=args.recursive
 
outputDir=args.output or curDir
 
outputFormat=args.format or "svg"
 
keepBroken=True if args.keep_broken is not None else False
 

	
 
movesPerDiagram=args.moves_p_d or 100
 
minMovesPerDiagram=args.min_p_d or 10
src/diana/diana.py
Show inline comments
 
file renamed from src/diana.py to src/diana/diana.py
src/diana/drawer/__init__.py
Show inline comments
 
file renamed from src/drawer/__init__.py to src/diana/drawer/__init__.py
src/diana/drawer/base.py
Show inline comments
 
file renamed from src/drawer/base.py to src/diana/drawer/base.py
src/diana/drawer/svg.py
Show inline comments
 
file renamed from src/drawer/svg.py to src/diana/drawer/svg.py
src/diana/drawer/tikz.py
Show inline comments
 
file renamed from src/drawer/tikz.py to src/diana/drawer/tikz.py
src/diana/gameRecord.py
Show inline comments
 
file renamed from src/gameRecord.py to src/diana/gameRecord.py
src/diana/go.py
Show inline comments
 
file renamed from src/go.py to src/diana/go.py
src/diana/sgfParser/__init__.py
Show inline comments
 
file renamed from src/sgfParser/__init__.py to src/diana/sgfParser/__init__.py
src/diana/sgfParser/collection.py
Show inline comments
 
file renamed from src/sgfParser/collection.py to src/diana/sgfParser/collection.py
src/diana/sgfParser/node.py
Show inline comments
 
file renamed from src/sgfParser/node.py to src/diana/sgfParser/node.py
src/diana/sgfParser/propValues.py
Show inline comments
 
file renamed from src/sgfParser/propValues.py to src/diana/sgfParser/propValues.py
src/diana/sgfParser/property.py
Show inline comments
 
file renamed from src/sgfParser/property.py to src/diana/sgfParser/property.py
src/diana/templ/templ-pleb.svg
Show inline comments
 
file renamed from src/templ/templ-pleb.svg to src/diana/templ/templ-pleb.svg
src/diana/templ/templ.svg
Show inline comments
 
file renamed from src/templ/templ.svg to src/diana/templ/templ.svg
src/diana/tests/__init__.py
Show inline comments
 
file renamed from src/tests/__init__.py to src/diana/tests/__init__.py
src/diana/tests/data/kogos.sgf
Show inline comments
 
file renamed from src/tests/data/kogos.sgf to src/diana/tests/data/kogos.sgf
src/diana/tests/data/simple.sgf
Show inline comments
 
file renamed from src/tests/data/simple.sgf to src/diana/tests/data/simple.sgf
src/diana/tests/testSgfParser.py
Show inline comments
 
file renamed from src/tests/testSgfParser.py to src/diana/tests/testSgfParser.py
0 comments (0 inline, 0 general)