1
0
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:
David Paleino
2012-11-17 01:07:08 +01:00
parent b386b37db7
commit b5a4d70ab8
19 changed files with 729 additions and 448 deletions

View File

@@ -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)))