1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-14 07:43:06 +00:00
freebsd-ports/devel/phpsh/files/patch-src_manual.py
Marcus von Appen 9d52544272 - Convert to PYDISTUTILS_AUTOPLIST
- Use ETCDIR

PR:		ports/185947
With hat:	python@
2014-02-22 10:48:08 +00:00

15 lines
417 B
Python

$FreeBSD$
--- src/manual.py.orig
+++ src/manual.py
@@ -69,7 +69,7 @@
manual_file = "php_manual.db"
manual_path = os.path.join(os.getenv("HOME"), ".phpsh", manual_file)
if not os.path.exists(manual_path):
- manual_path = os.path.join("/etc/phpsh", manual_file)
+ manual_path = os.path.join("%%ETCDIR%%", manual_file)
conn = sqlite.connect(manual_path)
cursor = conn.cursor()