mirror of
https://github.com/gryf/wicd.git
synced 2025-12-28 09:22:36 +01:00
Fix some issues by pylint
This commit is contained in:
@@ -46,7 +46,7 @@ dbus_service = '%DBUS_SERVICE%'
|
||||
systemd = '%SYSTEMD%'
|
||||
logrotate = '%LOGROTATE%'
|
||||
desktop = '%DESKTOP%'
|
||||
backends= '%BACKENDS%'
|
||||
backends = '%BACKENDS%'
|
||||
daemon = '%DAEMON%'
|
||||
curses = '%CURSES%'
|
||||
gtk = '%GTK%'
|
||||
@@ -88,12 +88,12 @@ no_install_ncurses = %NO_INSTALL_NCURSES%
|
||||
no_install_cli = %NO_INSTALL_CLI%
|
||||
no_use_notifications = %NO_USE_NOTIFICATIONS%
|
||||
|
||||
def chdir(file):
|
||||
def chdir(f):
|
||||
"""Change directory to the location of the specified file.
|
||||
|
||||
Keyword arguments:
|
||||
file -- the file to switch to (usually __file__)
|
||||
f -- the file to switch to (usually __file__)
|
||||
|
||||
"""
|
||||
os.chdir(os.path.dirname(os.path.realpath(file)))
|
||||
os.chdir(os.path.dirname(os.path.realpath(f)))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user