1
0
Fork 0
mirror of synced 2024-06-28 03:31:09 -04:00
Commit graph

8 commits

Author SHA1 Message Date
m-richards 47f3e07b2d
Cleanup link logic, with a fix for windows links with \\?\ in them.
* reduce ci matrix

* python runscript without bash

(cherry picked from commit 9b148a6679722db5eb7ffabd3a27a8579f296319)

* change link dest function to handle '\?\' links

* add path normalization for windows support

* Revert "add path normalization for windows support"

This reverts commit 2ab0fc1b3c.

* link variable extraction without normpath

* type annotation

* blacken

* missing black files

* variable renames from '2775765a' outside link function

* from '2775765a' use method for default flags

* fix defaults from method

* variable renames from '2775765a' in link function and method renames

* refactor if clauses into blocks

* maybe fix if refactor

* remove unreachable code

* remove silly disambiguation semantics

* remove silly disambiguation semantics 2

* incremental else swap

* bring source existence check to front

* bring source existence check to front and remove old back check

* refactor almost final case

* check symlink broken cases up front

* add return missing

* flip block order to make things easier to understand
2021-02-16 19:32:13 +10:00
Paulo Fagundes d2913e6cee Replace which with command -v
Some distributions such as Arch Linux no longer install `which` by
default through the base package (see
https://www.archlinux.org/news/base-group-replaced-by-mandatory-base-package-manual-intervention-required/).

The maintainers have explained why `command -v` is superior:
https://www.reddit.com/r/archlinux/comments/de1er6/arch_linux_news_base_group_replaced_by_mandatory/f2v8uhu/.
2019-11-09 12:38:01 -05:00
Anish Athalye 9a8d292681 Make launcher prefer python over python3
This patch makes the launcher script prefer `python`, when present, over
`python3`. This way, the launcher uses the user's preferred `python`
(which is often set up as a symbolic link to a particular python2.x or
python3.x), when available.
2019-06-26 15:00:07 -04:00
Anish Athalye f7a8bf10ba Fix script
It is only legal to `return` from a function or sourced script. The
right builtin to use here is `exit`.
2018-06-07 13:04:19 -04:00
Anish Athalye 53eb3851d1 Make launcher find python binary 2017-04-19 08:40:15 -04:00
lbriggs 285543ac6a Fix version check
The version checking code fails on Python 2.6 and earlier.
`sys.version_info` only became a named tuple in Python 2.7. The
recommended way to get the check to work in earlier versions of Python
is to access it as a regular tuple.
2014-12-18 20:05:03 -05:00
Anish Athalye 33d602bb93 Add YAML support
Add support for YAML format configuration files. In addition, this
commit adds instructions about YAML config files to the README, and it
also changes the README to encourage use of YAML instead of JSON.
2014-10-27 20:31:40 -04:00
Anish Athalye 60a560e976 Initial commit 2014-03-20 18:57:56 -04:00