Skip to content

Commit

Permalink
Move files from "nuimo" subfolder into root folder
Browse files Browse the repository at this point in the history
  • Loading branch information
gross1989 authored and larsblumberg committed Sep 16, 2016
1 parent d0db24c commit 29fc429
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 10 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,15 @@ sh examples/install.sh py3gattlib # For Python 3.x
4. `sudo python3 setup.py install` (Installs **gattlib.cpython-34m.so** and support files to **/usr/local/lib/python3.4/dist-packages/gattlib*.egg**)

### 3. Install Nuimo Python SDK
1. `cp nuimo/nuimo.py <your project directory> # The Nuimo SDK is a single file`
1. `cp nuimo.py <your project directory> # The Nuimo SDK is a single file`

## Usage
The **Nuimo** SDK is a single Python source file. It has been tested with Python 2.7 and Python 3.4.

#### Testing
To test, run the following command (note that it must be run as root because on Linux, Bluetooth discovery is a restricted operation).
```
sudo PYTHONPATH=./nuimo python examples/test.py
sudo PYTHONPATH=. python examples/test.py
```
#### Usage
```python
Expand Down
6 changes: 3 additions & 3 deletions examples/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,15 @@ case "$cmd" in
echo "Installing Nuimo SDK"
set -x
[ ! -d nuimo-linux-python ] && git clone https://github.com/getsenic/nuimo-linux-python
echo "Copy $(pwd)/nuimo-linux-python/nuimo/nuimo.py to your project directory"
echo "Copy $(pwd)/nuimo-linux-python/nuimo.py to your project directory"
;;

test)
echo "Testing Nuimo SDK"
sdk="nuimo-linux-python"
set -x
[ -f $sdk/examples/test.py ] && { sudo PYTHONPATH=$sdk/nuimo python $sdk/examples/test.py; exit 0; }
[ -f examples/test.py ] && { sudo PYTHONPATH=./nuimo python examples/test.py; exit 0; }
[ -f $sdk/examples/test.py ] && { sudo PYTHONPATH=$sdk python $sdk/examples/test.py; exit 0; }
[ -f examples/test.py ] && { sudo PYTHONPATH=. python examples/test.py; exit 0; }
set +x
echo "Please install the Nuimo SDK: sh $0 nuimosdk "
;;
Expand Down
File renamed without changes.
5 changes: 0 additions & 5 deletions nuimo/.gitignore

This file was deleted.

File renamed without changes.

0 comments on commit 29fc429

Please sign in to comment.