Skip to content

Commit cda81ad

Browse files
committed
use helper for symlink location
1 parent ba4537e commit cda81ad

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

scripts/install_cli.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -535,10 +535,8 @@ def is_symlink(path):
535535

536536

537537
def createSymlink():
538-
link = os.path.join(getResourcesFolder(), 'wakatime-cli')
539-
if is_win:
540-
link = link + '.exe'
541-
elif os.path.exists(link) and is_symlink(link):
538+
link = getSymlinkLocation()
539+
if os.path.exists(link) and is_symlink(link):
542540
return # don't re-create symlink on Unix-like platforms
543541

544542
if os.path.isdir(link):

0 commit comments

Comments
 (0)