mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-02-07 12:50:32 +03:00
Fixed spaces in pg_config path
This commit is contained in:
parent
e664abb248
commit
a5e01ef0df
|
@ -1,3 +1,7 @@
|
||||||
|
2008-06-28 Federico Di Gregorio <fog@initd.org>
|
||||||
|
|
||||||
|
* setup.py: fixed problem with spaces in pg_config path.
|
||||||
|
|
||||||
2008-05-27 Federico Di Gregorio <fog@initd.org>
|
2008-05-27 Federico Di Gregorio <fog@initd.org>
|
||||||
|
|
||||||
* psycopg/pqpath.c: better error checks in _pq_copy_in_v3 to
|
* psycopg/pqpath.c: better error checks in _pq_copy_in_v3 to
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -66,6 +66,8 @@ if sys.version < '2.2.3':
|
||||||
DistributionMetadata.download_url = None
|
DistributionMetadata.download_url = None
|
||||||
|
|
||||||
def get_pg_config(kind, pg_config="pg_config"):
|
def get_pg_config(kind, pg_config="pg_config"):
|
||||||
|
if ' ' in pg_config:
|
||||||
|
pg_config = '"'+pg_config+'"'
|
||||||
p = popen2.popen3(pg_config + " --" + kind)
|
p = popen2.popen3(pg_config + " --" + kind)
|
||||||
r = p[0].readline().strip()
|
r = p[0].readline().strip()
|
||||||
if not r:
|
if not r:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user