Skip to content

Commit

Permalink
clarify comment further on cwd
Browse files Browse the repository at this point in the history
  • Loading branch information
ssteinbach committed Jul 16, 2024
1 parent 31d8f06 commit 6380c80
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ def _prepped_otio_for_bundle_and_manifest(

# ensure that the urlscheme is either "file" or ""
# file means "absolute path"
# "" is interpreted as a relative path, relative to cwd
# "" is interpreted as a relative path, relative to cwd of the python
# process
if parsed_url.scheme not in ("file", ""):
if media_policy is MediaReferencePolicy.ErrorIfNotFile:
raise NotAFileOnDisk(
Expand Down
2 changes: 1 addition & 1 deletion src/py-opentimelineio/opentimelineio/adapters/otiod.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
def read_from_file(
filepath,
# convert the media_reference paths to absolute paths
absolute_media_reference_paths=False
absolute_media_reference_paths=False,
):
result = otio_json.read_from_file(
os.path.join(filepath, utils.BUNDLE_PLAYLIST_PATH)
Expand Down

0 comments on commit 6380c80

Please sign in to comment.