mirror of
https://github.com/gryf/wicd.git
synced 2026-03-30 00:43:32 +02:00
Experimental: Apply changes involving setup.py
* Added setup.py from trunk * Updated various information files (AUTHORS, README, etc) * Update the Wicd icon * Move stuff around to match trunk's layout
This commit is contained in:
71
in/wicd=wpath.py.in
Executable file
71
in/wicd=wpath.py.in
Executable file
@@ -0,0 +1,71 @@
|
||||
""" 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 /
|
||||
|
||||
# DIRECTORIES
|
||||
|
||||
lib = '%LIB%'
|
||||
share = '%SHARE%'
|
||||
etc = '%ETC%'
|
||||
images = '%IMAGES%'
|
||||
encryption = '%ENCRYPTION%'
|
||||
bin = '%BIN%'
|
||||
networks = '%NETWORKS%'
|
||||
log = '%LOG%'
|
||||
resume = '%RESUME%'
|
||||
suspend = '%SUSPEND%'
|
||||
sbin = '%SBIN%'
|
||||
dbus = '%DBUS%'
|
||||
desktop = '%DESKTOP%'
|
||||
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%'
|
||||
|
||||
# BOOLEANS
|
||||
|
||||
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_install = %NO_INSTALL_INSTALL%
|
||||
no_install_license = %NO_INSTALL_LICENSE%
|
||||
|
||||
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)))
|
||||
|
||||
Reference in New Issue
Block a user