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).
hunk ./darcsweb.cgi 26
+# 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')
+