Use wificonfig.py without QT.
Hi All,
I needed to be able to configure the printer's wifi through the console usb port.
Here are the changes I made:
File added :
/usr/share/
Modified file :
///////
--- a/usr/share/
+++ b/usr/share/
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
# -*- coding: utf-8 -*-
#
# (c) Copyright 2003-2015 HP Development Company, L.P.
@@ -32,7 +32,7 @@
import time
import operator
import os
-
+from wificmd import *
# Local
from base.g import *
from base import device, utils, maint, tui, module
@@ -61,8 +61,9 @@
device_uri = None
if not utils.canEnterG
- log.error("%s -u/--gui requires Qt4 GUI support. Exiting." % __mod__)
- sys.exit(1)
+ log.warning("%s -u/--gui requires Qt4 GUI support. Switching to console mode:" % __mod__)
+ WifiCmd()
+ sys.exit(0)
# try:
# from PyQt4.QtGui import QApplication
///////
Thierry
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- HPLIP Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- brian_p
- Solved:
- Last query:
- Last reply: