Skip to content

Commit cce4e36

Browse files
committed
LF-37520: Use abspath rather than realpath. This allows the build to be run from a subst-ed drive on Windows.
1 parent 0e87479 commit cce4e36

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

tools/automate.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def setup_options(docopt_args):
171171
if hasattr(Options, key2) and value is not None:
172172
setattr(Options, key2, value)
173173

174-
Options.tools_dir = os.path.dirname(os.path.realpath(__file__))
174+
Options.tools_dir = os.path.dirname(os.path.abspath(__file__))
175175
Options.cefpython_dir = os.path.dirname(Options.tools_dir)
176176

177177
if not Options.cef_git_url:
@@ -199,7 +199,7 @@ def setup_options(docopt_args):
199199

200200
# --build-dir
201201
if Options.build_dir:
202-
Options.build_dir = os.path.realpath(Options.build_dir)
202+
Options.build_dir = os.path.abspath(Options.build_dir)
203203
else:
204204
Options.build_dir = os.path.join(Options.cefpython_dir, "build")
205205
if " " in Options.build_dir:
@@ -211,7 +211,7 @@ def setup_options(docopt_args):
211211

212212
# --cef-build-dir
213213
if Options.cef_build_dir:
214-
Options.cef_build_dir = os.path.realpath(Options.cef_build_dir)
214+
Options.cef_build_dir = os.path.abspath(Options.cef_build_dir)
215215
else:
216216
Options.cef_build_dir = Options.build_dir
217217
if " " in Options.cef_build_dir:
@@ -714,7 +714,7 @@ def prepare_build_command(build_lib=False, vcvars=None):
714714
command.append(VS_PLATFORM_ARG)
715715
else:
716716
if int(Options.cef_branch) >= 2704:
717-
command.append(VS2015_VCVARS)
717+
command.append(VS2019_VCVARS)
718718
else:
719719
command.append(VS2013_VCVARS)
720720
command.append(VS_PLATFORM_ARG)
@@ -893,7 +893,7 @@ def copy_app(app):
893893

894894
def get_available_python_compilers():
895895
all_python_compilers = OrderedDict([
896-
("2015", VS2015_VCVARS),
896+
("2019", VS2019_VCVARS),
897897
])
898898
ret_compilers = OrderedDict()
899899
for msvs in all_python_compilers:

0 commit comments

Comments
 (0)