reformat
This commit is contained in:
16
setup.py
16
setup.py
@@ -1,12 +1,14 @@
|
|||||||
from distutils.core import setup
|
from distutils.core import setup
|
||||||
import os
|
import os
|
||||||
|
|
||||||
def version_reader(path):
|
|
||||||
for line in open(path,"rt").read(1024).split("\n"):
|
|
||||||
if line.startswith("VERSION"):
|
|
||||||
return line.split("=")[1].strip().replace('"',"")
|
|
||||||
|
|
||||||
version = version_reader(os.path.join("tsmark","__init__.py"))
|
def version_reader(path):
|
||||||
|
for line in open(path, "rt").read(1024).split("\n"):
|
||||||
|
if line.startswith("VERSION"):
|
||||||
|
return line.split("=")[1].strip().replace('"', "")
|
||||||
|
|
||||||
|
|
||||||
|
version = version_reader(os.path.join("tsmark", "__init__.py"))
|
||||||
setup(
|
setup(
|
||||||
name="tsmark",
|
name="tsmark",
|
||||||
packages=["tsmark"],
|
packages=["tsmark"],
|
||||||
@@ -20,7 +22,5 @@ setup(
|
|||||||
"tsmark=tsmark:main",
|
"tsmark=tsmark:main",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
install_requires = [
|
install_requires=["opencv-python==4.5.3.56"],
|
||||||
'opencv-python==4.5.3.56'
|
|
||||||
]
|
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
from tsmark.video_annotator import main
|
from tsmark.video_annotator import main
|
||||||
VERSION = "0.1"
|
|
||||||
|
|
||||||
|
VERSION = "0.1"
|
||||||
|
|||||||
@@ -1,2 +1,3 @@
|
|||||||
from tsmark.video_annotator import main
|
from tsmark.video_annotator import main
|
||||||
|
|
||||||
main()
|
main()
|
||||||
|
|||||||
@@ -276,14 +276,14 @@ def main():
|
|||||||
|
|
||||||
if k & 0xFF == ord("z"): # move to previous ts
|
if k & 0xFF == ord("z"): # move to previous ts
|
||||||
for ts in reversed(sorted(stamps)):
|
for ts in reversed(sorted(stamps)):
|
||||||
if ts < nr-1:
|
if ts < nr - 1:
|
||||||
nr = ts-1
|
nr = ts - 1
|
||||||
read_next = True
|
read_next = True
|
||||||
break
|
break
|
||||||
if k & 0xFF == ord("c"): # move to previous ts
|
if k & 0xFF == ord("c"): # move to previous ts
|
||||||
for ts in sorted(stamps):
|
for ts in sorted(stamps):
|
||||||
if ts > nr:
|
if ts > nr:
|
||||||
nr = ts-1
|
nr = ts - 1
|
||||||
read_next = True
|
read_next = True
|
||||||
break
|
break
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user