Skip to content

Commit

Permalink
Moved code into a Source folder
Browse files Browse the repository at this point in the history
- Added a `build` script using `pyinstaller`.
  • Loading branch information
latenitefilms committed Jun 24, 2023
1 parent be0cbd8 commit 8f30471
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
pyinstaller --onefile --add-binary='/opt/homebrew/lib/libmediainfo.dylib:.' rename-avid-mxf.py
6 changes: 6 additions & 0 deletions rename-avid-mxf.py → Source/rename-avid-mxf.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
import os
import argparse
import sys
from pymediainfo import MediaInfo

# If we're running as a PyInstaller binary, add the directory containing bundled
# files to the library path
if getattr(sys, 'frozen', False):
os.environ['DYLD_LIBRARY_PATH'] = sys._MEIPASS

def rename_file(path):
# Retrieve media information
media_info = MediaInfo.parse(path)
Expand Down
File renamed without changes.

0 comments on commit 8f30471

Please sign in to comment.