[gnome-keysign: 32/65] bluetooth: explicit import and add os import
- From: Gitlab System User <gitlab src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-keysign: 32/65] bluetooth: explicit import and add os import
- Date: Tue, 3 Oct 2017 11:39:35 +0000 (UTC)
commit 9649a6ef7d544d2b81bcf11419fd587e8335343f
Author: RyuzakiKK <aasonykk gmail com>
Date: Sun Aug 20 19:12:47 2017 +0200
bluetooth: explicit import and add os import
keysign/bluetoothoffer.py | 3 ++-
keysign/bluetoothreceive.py | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/keysign/bluetoothoffer.py b/keysign/bluetoothoffer.py
index 590da35..ee717e2 100644
--- a/keysign/bluetoothoffer.py
+++ b/keysign/bluetoothoffer.py
@@ -1,5 +1,5 @@
import logging
-from bluetooth import *
+from bluetooth import BluetoothSocket, RFCOMM
import dbus
import select
if __name__ == "__main__":
@@ -15,6 +15,7 @@ if __name__ == "__main__" and __package__ is None:
logging.getLogger().error("You seem to be trying to execute " +
"this script directly which is discouraged. " +
"Try python -m instead.")
+ import os
parent_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
os.sys.path.insert(0, parent_dir)
os.sys.path.insert(0, os.path.join(parent_dir, 'monkeysign'))
diff --git a/keysign/bluetoothreceive.py b/keysign/bluetoothreceive.py
index 73da028..d0af651 100644
--- a/keysign/bluetoothreceive.py
+++ b/keysign/bluetoothreceive.py
@@ -1,6 +1,6 @@
import logging
import select
-from bluetooth import *
+from bluetooth import BluetoothSocket, BluetoothError, RFCOMM
if __name__ == "__main__":
import gi
@@ -15,6 +15,7 @@ if __name__ == "__main__" and __package__ is None:
logging.getLogger().error("You seem to be trying to execute " +
"this script directly which is discouraged. " +
"Try python -m instead.")
+ import os
parent_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
os.sys.path.insert(0, parent_dir)
os.sys.path.insert(0, os.path.join(parent_dir, 'monkeysign'))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]