forked from localhorst/media_management_scripts
Compare commits
2 Commits
dejavu-mac
...
fix-instal
Author | SHA1 | Date | |
---|---|---|---|
10d1954125
|
|||
084b27ecd4
|
0
check_metadata/checkMetadata/__init__.py
Normal file
0
check_metadata/checkMetadata/__init__.py
Normal file
@ -9,4 +9,7 @@ setup(
|
||||
"checkMetadata = checkMetadata.__main__:main"
|
||||
]
|
||||
},
|
||||
)
|
||||
install_requires=[
|
||||
'tqdm>=4.62.3'
|
||||
]
|
||||
)
|
||||
|
0
codec_visualizer/codecVis/__init__.py
Normal file
0
codec_visualizer/codecVis/__init__.py
Normal file
@ -7,7 +7,6 @@
|
||||
"""
|
||||
|
||||
import os
|
||||
import platform
|
||||
import sys
|
||||
import time
|
||||
import subprocess
|
||||
@ -56,12 +55,6 @@ def extract_frame(video_file, time_offset, output_file):
|
||||
subprocess.call(shlex.split(cmd),stdout=devnull, stderr=devnull)
|
||||
|
||||
def get_font_path():
|
||||
if platform.system() == "Darwin":
|
||||
# Assume DejaVu to be installed in the user library
|
||||
path = "~/Library/Fonts/DejaVuSans-Bold.ttf"
|
||||
return os.path.expanduser(path)
|
||||
|
||||
# Default platform: Linux
|
||||
path = "/usr/share/fonts"
|
||||
files = glob.glob(path + "/**/DejaVuSans-Bold.ttf", recursive = True)
|
||||
return files[0]
|
||||
|
Reference in New Issue
Block a user