mirror of
https://github.com/gryf/wicd.git
synced 2025-12-29 09:52:31 +01:00
Added support for keeping track of the revisions of the curses client
(%CURSES_REVNO%)
curses/wicd-curses.py:
Added the ad-hoc controls to the Help dialog
Set wireless scans to be synchronous (True), to adapt to an API change in mainline
Added support for OptionParser, added and implemented the option that was
described in the man page (and -h (help) and --version)
in/wicd=wpath.py.in: Added a curses_revision flag
in/man=wicd-curses.8.in:
Option parsing has been implemented. Added the %CURSES_REVNO% flag to the man page.
Fixed an accidental " added to one of the headers
79 lines
1.8 KiB
Python
Executable File
79 lines
1.8 KiB
Python
Executable File
""" Path configuration and functions for the wicd daemon and gui clients.
|
|
|
|
chdir() -- Change directory to the location of the current file.
|
|
|
|
"""
|
|
|
|
import os
|
|
|
|
# The path containing the wpath.py file.
|
|
current = os.path.dirname(os.path.realpath(__file__)) + '/'
|
|
|
|
# These paths can easily be modified to handle system wide installs, or
|
|
# they can be left as is if all files remain with the source directory
|
|
# layout.
|
|
|
|
# These paths are replaced when setup.py configure is run
|
|
|
|
# All directory paths *MUST* end in a /
|
|
|
|
version = '%VERSION%'
|
|
revision = '%REVNO%'
|
|
curses_revision = '%CURSES_REVNO%'
|
|
|
|
# DIRECTORIES
|
|
|
|
lib = '%LIB%'
|
|
share = '%SHARE%'
|
|
etc = '%ETC%'
|
|
images = '%IMAGES%'
|
|
encryption = '%ENCRYPTION%'
|
|
bin = '%BIN%'
|
|
networks = '%NETWORKS%'
|
|
log = '%LOG%'
|
|
resume = '%RESUME%'
|
|
suspend = '%SUSPEND%'
|
|
sbin = '%SBIN%'
|
|
pmutils = '%PMUTILS%'
|
|
dbus = '%DBUS%'
|
|
desktop = '%DESKTOP%'
|
|
backends= '%BACKENDS%'
|
|
translations = '%TRANSLATIONS%'
|
|
icons = '%ICONS%'
|
|
autostart = '%AUTOSTART%'
|
|
init = '%INIT%'
|
|
docdir = '%DOCDIR%'
|
|
mandir = '%MANDIR%'
|
|
kdedir = '%KDEDIR%'
|
|
|
|
# FILES
|
|
|
|
# python begins the file section
|
|
python = '%PYTHON%'
|
|
pidfile = '%PIDFILE%'
|
|
# stores something like other/wicd
|
|
# really only used in the install
|
|
initfile = '%INITFILE%'
|
|
# stores only the file name, i.e. wicd
|
|
initfilename = '%INITFILENAME%'
|
|
wicd_group = '%WICDGROUP%'
|
|
|
|
# BOOLEANS
|
|
no_install_pmutils = %NO_INSTALL_PMUTILS%
|
|
no_install_init = %NO_INSTALL_INIT%
|
|
no_install_man = %NO_INSTALL_MAN%
|
|
no_install_kde = %NO_INSTALL_KDE%
|
|
no_install_acpi = %NO_INSTALL_ACPI%
|
|
no_install_docs = %NO_INSTALL_DOCS%
|
|
no_install_ncurses = %NO_INSTALL_NCURSES%
|
|
|
|
def chdir(file):
|
|
"""Change directory to the location of the specified file.
|
|
|
|
Keyword arguments:
|
|
file -- the file to switch to (usually __file__)
|
|
|
|
"""
|
|
os.chdir(os.path.dirname(os.path.realpath(file)))
|
|
|