mitsuhiko / pipsi

pip script installer
Other
2k stars 133 forks source link

check var for truthiness before using #163 #171

Closed cs01 closed 5 years ago

cs01 commented 6 years ago

Calling os.path.exists(None) raises the error TypeError: coercing to Unicode:... as described in https://github.com/mitsuhiko/pipsi/issues/163.

Confirm config_file is truthy before using.

cs01 commented 6 years ago

@RonnyPfannschmidt bump

leonsmith commented 5 years ago

Hit this installing pipsi in a docker container as the SHELL environment variable isn't set.

It still attempts to to check for the existing of a config file. Managed to bypass it for now with --no-modify-path

curl https://raw.githubusercontent.com/mitsuhiko/pipsi/master/get-pipsi.py | python - --no-modify-path