renaming ansi library, thers another with the same generic name
This commit is contained in:
@@ -3,5 +3,5 @@
|
||||
import sys,os
|
||||
sys.path.append(os.path.realpath(os.path.join(os.path.dirname(__file__),
|
||||
"..","reporting")))
|
||||
import ansi
|
||||
print(ansi.demo())
|
||||
import ansicodes
|
||||
print(ansicodes.demo())
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env python
|
||||
import sys, os
|
||||
sys.path.append(os.path.dirname(os.path.realpath(__file__)))
|
||||
import ansi
|
||||
import ansicodes
|
||||
from argparse import ArgumentParser
|
||||
|
||||
def setup_options():
|
||||
@@ -22,7 +22,7 @@ def setup_options():
|
||||
return opts
|
||||
|
||||
def long_format(table):
|
||||
bc = ansi.code()
|
||||
bc = ansicodes.code()
|
||||
for x,col in enumerate(table):
|
||||
for y,row in enumerate(col):
|
||||
bc.posprint(
|
||||
@@ -35,7 +35,7 @@ def long_format(table):
|
||||
|
||||
|
||||
def short_format(table):
|
||||
bc = ansi.code()
|
||||
bc = ansicodes.code()
|
||||
for x,col in enumerate(table):
|
||||
for y,row in enumerate(col):
|
||||
bc.posprint(
|
||||
@@ -57,7 +57,7 @@ if __name__ == "__main__":
|
||||
#sys.stdout.write(chr(c).decode('latin1'))
|
||||
# remove control chars
|
||||
table.pop(0)
|
||||
bc = ansi.code()
|
||||
bc = ansicodes.code()
|
||||
bc.clear()
|
||||
if opts.v:
|
||||
lines = int(25 - len(opts.cs)/2 - 2)
|
||||
|
||||
@@ -5,7 +5,7 @@ set -x
|
||||
|
||||
rm -rf markslider
|
||||
mkdir -p markslider/scripts markslider/markslider
|
||||
cp -v ansi.py md_color.py markslider.py markslider/markslider/
|
||||
cp -v ansicodes.py md_color.py markslider.py markslider/markslider/
|
||||
|
||||
echo '#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
@@ -26,7 +26,7 @@ import sys,os,argparse,re,datetime
|
||||
from argparse import ArgumentParser
|
||||
import traceback,tty,termios,subprocess,signal
|
||||
sys.path.append(os.path.dirname(os.path.realpath(__file__)))
|
||||
import ansi,md_color
|
||||
import ansicodes, md_color
|
||||
|
||||
HL=">"
|
||||
EOS="# End of Slides"
|
||||
@@ -745,7 +745,7 @@ def main():
|
||||
global bc
|
||||
global getch
|
||||
global opts
|
||||
bc = ansi.code()
|
||||
bc = ansicodes.code()
|
||||
getch = getch()
|
||||
opts = setup_options()
|
||||
if opts.screenshots:
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
import sys,os,re
|
||||
from argparse import ArgumentParser, RawDescriptionHelpFormatter
|
||||
sys.path.append(os.path.dirname(os.path.realpath(__file__)))
|
||||
import ansi
|
||||
import ansicodes as ansi
|
||||
|
||||
__author__ = "Ville Rantanen <ville.q.rantanen@gmail.com>"
|
||||
__version__ = "0.3"
|
||||
|
||||
@@ -25,7 +25,7 @@ __version__ = "0.1"
|
||||
import sys,os,argparse,re
|
||||
from argparse import ArgumentParser
|
||||
sys.path.append(os.path.dirname(os.path.realpath(__file__)))
|
||||
import ansi
|
||||
import ansicodes as ansi
|
||||
|
||||
def setup_options():
|
||||
''' Create command line options '''
|
||||
|
||||
Reference in New Issue
Block a user