mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-07-29 09:29:46 +03:00
Add VC 2019 path location
This commit is contained in:
parent
cc8772fb48
commit
34dd0bee4e
|
@ -764,10 +764,16 @@ class Options:
|
||||||
"""
|
"""
|
||||||
The path of the Visual C compiler.
|
The path of the Visual C compiler.
|
||||||
"""
|
"""
|
||||||
return Path(
|
if self.vs_ver == '16.0':
|
||||||
|
path = Path(
|
||||||
|
r"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build"
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
path = Path(
|
||||||
r"C:\Program Files (x86)\Microsoft Visual Studio %s\VC"
|
r"C:\Program Files (x86)\Microsoft Visual Studio %s\VC"
|
||||||
% self.vs_ver
|
% self.vs_ver
|
||||||
)
|
)
|
||||||
|
return path
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def vs_ver(self):
|
def vs_ver(self):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user