Skip to content

Commit

Permalink
Switch fake-sys submodule from rhempel to ddemidov (#397)
Browse files Browse the repository at this point in the history
* Switch fake-sys submodule from rhempel to ddemidov

* Updated to latest fake-sys

* Fix board_info_dir for FAKE_SYS
  • Loading branch information
dwalton76 authored Oct 5, 2017
1 parent 7a96951 commit aeb0155
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "tests/fake-sys"]
path = tests/fake-sys
url = https://github.com/rhempel/ev3dev-lang-fake-sys.git
url = https://github.com/ddemidov/ev3dev-lang-fake-sys.git
3 changes: 3 additions & 0 deletions ev3dev/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ def get_current_platform():
"""
board_info_dir = '/sys/class/board-info/'

if not os.path.exists(board_info_dir):
return 'fake'

for board in os.listdir(board_info_dir):
uevent_filename = os.path.join(board_info_dir, board, 'uevent')

Expand Down
2 changes: 1 addition & 1 deletion ev3dev/sensor/lego.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
raise SystemError('Must be using Python 3.4 or higher')

import time
from ev3dev._button import ButtonBase
from ev3dev.button import ButtonBase
from ev3dev.sensor import Sensor


Expand Down
2 changes: 1 addition & 1 deletion tests/fake-sys

0 comments on commit aeb0155

Please sign in to comment.