Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix python in msys2 #124

Closed
wants to merge 8 commits into from
Closed

Fix python in msys2 #124

wants to merge 8 commits into from

Conversation

moeshin
Copy link
Contributor

@moeshin moeshin commented Jan 6, 2022

No description provided.

shutil.copy2(getCliLocation(), link)
except:
log(traceback.format_exc())
if not exists:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll change this to try copying even when already exists, but only if we've successfully downloaded an updated wakatime-cli.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added to master with 9c1c0b5 and bbfa0fb.

let job_cmd = split(&shell) + split(&shellcmdflag) + cmd
else
let job_cmd = split(&shell) + split(&shellcmdflag) + [s:JoinArgs(cmd)]
if s:IsWindows() && s:Chomp(system(s:JoinArgs([python_bin, '-VV'])) !~ 'MSC')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can't use system() during init because it slows down startup for all Windows users.

Copy link
Member

@alanhamlett alanhamlett Jan 7, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should work instead?

if s:IsWindows() && &shell =~ '/msys'

@alanhamlett
Copy link
Member

Closing in favor of 1ebea7d.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants