-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove set_verbosity_level(), set_cracking_mode(), and related code
It is not actually possible to set the environment variable from python in such a way for the library to get the changes. I've tried manipulating os.environ, setx, py-setenv, and pycrosskit. Nothing set it persistently for the current terminal/shell in such a way that it could be changed at a whim by these methods. The closest result was setx but it required the entire terminal/shell to reload, making it more or less useless in this context.
- Loading branch information
1 parent
da7e99e
commit a530c81
Showing
4 changed files
with
44 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
from typing import Literal | ||
|
||
from pydvdcss.structs import CrackingMode, ReadFlag, SeekFlag, VerbosityLevel | ||
from pydvdcss.structs import ReadFlag, SeekFlag | ||
|
||
VerbosityLevel_T = VerbosityLevel | Literal[-1, 0, 1, 2] | ||
CrackingMode_T = CrackingMode | Literal["unset", "title", "disc", "key"] | ||
SeekFlag_T = SeekFlag | Literal[0, 1, 2] | ||
ReadFlag_T = ReadFlag | Literal[0, 1] | ||
|
||
__all__ = ("VerbosityLevel_T", "CrackingMode_T", "SeekFlag_T", "ReadFlag_T") | ||
__all__ = ("SeekFlag_T", "ReadFlag_T") |