Skip to content

Commit

Permalink
Use xboxpy for get_timers.py
Browse files Browse the repository at this point in the history
  • Loading branch information
JayFoxRox committed Jul 2, 2018
1 parent a566bd8 commit 85e0456
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "python-scripts/xboxpy"]
path = python-scripts/xboxpy
url = https://github.com/XboxDev/xboxpy.git
15 changes: 14 additions & 1 deletion python-scripts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,20 @@

This is a collection of scripts to access various Xbox hardware.

## Usage

## Usage for updated scripts

Some code might be using [xboxpy](https://github.com/XboxDev/xboxpy) already.
Please check the respective xboxpy documentation.

Also initialize the submodules to be able use those scripts:

```
git submodule update --init --recursive
```


## Usage for legacy scripts

* All stuff is internally imported by the `xbox` module. So: `import xbox`
* You can define the interface you want to use using environment variable 'XBOX_IF':
Expand Down
2 changes: 1 addition & 1 deletion python-scripts/get_timers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Prints information about some of the Xbox timers

from xbox import *
from xboxpy.xboxpy import *



Expand Down
1 change: 1 addition & 0 deletions python-scripts/xboxpy
Submodule xboxpy added at 81ba03

0 comments on commit 85e0456

Please sign in to comment.