-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added module natlinktimer (multiplexing natlink.setTimerCallback), and added natlinkstatus: getUnimacroDataDirectory * test script: test_natlinktimer.py * working on natlinktimer, add callback at mic off in loader * improve natlinktimer, when mic switches off! Co-authored-by: Doug Ransom <[email protected]>
- Loading branch information
Showing
16 changed files
with
874 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#powershell to run the tests, then build the python package. | ||
$ErrorActionPreference = "Stop" | ||
pytest --capture=tee-sys | ||
flit build --format sdist |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
def locateme(): | ||
return __path__[0] |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
from natlinkcore.configure.natlink_extensions import extensions_and_folders |
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
"""Command Line Program to List Advertised Natlink Exensions.""" | ||
import sys | ||
from importlib.metadata import entry_points | ||
import argparse | ||
|
||
def extensions_and_folders(): | ||
discovered_extensions=entry_points(group='natlink_extensions') | ||
|
||
for extension in discovered_extensions: | ||
n=extension.name | ||
ep=extension.value | ||
try: | ||
pathfn=extension.load() | ||
path=pathfn() | ||
|
||
except Exception as e: | ||
path = e | ||
yield n,path | ||
|
||
|
||
def main(): | ||
parser=argparse.ArgumentParser(description="Enumerate natlink extension momdules.") | ||
args=parser.parse_args() | ||
for n,path in extensions_and_folders(): | ||
print(f"{n} {path}") | ||
return 0 | ||
|
||
if '__main__' == __name__: | ||
main() |
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
Oops, something went wrong.