Add /etc/darcsweb to the module lookup path.
Thu Feb 23 17:21:30 UTC 2006 Alberto Bertogli <albertogli@telpin.com.ar>
* Add /etc/darcsweb to the module lookup path.
This allows darcsweb's configuration to be in /etc/darcsweb instead of the
current directory. It's mostly wanted by distributions which want to isolate
the config file to keep things clean.
A similar patch was sent by Gaetan Lehmann (Mandriva), VMiklos (Frugalware)
and Fabian Linzberger (Debian).
diff -rN -u old-darcsweb/darcsweb.cgi new-darcsweb/darcsweb.cgi
--- old-darcsweb/darcsweb.cgi 2013-08-10 21:54:27.000000000 +0000
+++ new-darcsweb/darcsweb.cgi 2013-08-10 21:54:27.000000000 +0000
@@ -23,6 +23,11 @@
iso_datetime = '%Y-%m-%dT%H:%M:%SZ'
+# In order to be able to store the config file in /etc/darcsweb, it has to be
+# added to sys.path. It's mainly used by distributions, which place the
+# default configuration there.
+sys.path.append('/etc/darcsweb')
+
# empty configuration class, we will fill it in later depending on the repo
class config:
pass