Skip to content

Commit

Permalink
Edited module import declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
jamestaylr committed Jul 25, 2015
1 parent 816a82e commit 3dd900d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/modules/servo.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/python
import socket, sys, time, json, threading
import socket, sys, time, json, threading, logging
from thread import *

def generate_error(message):
Expand Down
10 changes: 7 additions & 3 deletions src/modules/utils.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
#!/usr/bin/python
import json, logging, configparser, modules.calc, time, os, sys, modules.log
import logging, curses, time, socket
from datetime import datetime
try:
import json, logging, configparser, modules.calc, time, os, sys, modules.log
import logging, curses, time, socket
from datetime import datetime
except:
import os, time
pass

logger = logging.getLogger('log')

Expand Down
8 changes: 1 addition & 7 deletions src/modules/wind_sensor.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#!/usr/bin/python
import time, logging, sys
from utils import setup_logging

logger = logging.getLogger('log')
setup_logging()
Expand All @@ -11,12 +9,8 @@
logger.critical('[Wind Sensor Socket]: SMBUS not configured properly!')
sys.exit(1)

import threading
import socket
import time, logging, sys, socket, json, threading
from thread import *
import time
import json
import threading

wind_sensor = None # Global wind_sensor variable
angle = 0.0
Expand Down

0 comments on commit 3dd900d

Please sign in to comment.