Skip to content

Commit

Permalink
Allow libs file in CWD to be given without leading "./" (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
simeoncarstens authored Sep 2, 2024
1 parent fee0626 commit 0e46f14
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions fix-python
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,14 @@ fi
# load libs from Nix file
if [ "$LIBS_PATH" ];
then
# if $LIBS_PATH is just a file in the current working directory,
# specified without leading "./", we add "./" so that $LIBS_PATH
# can be interpreted directly as a Nix path in the following
# expression
if [[ ! "$LIBS_PATH" == *"/"* ]];
then
LIBS_PATH="./$LIBS_PATH"
fi
custom_libs_expression="(import $LIBS_PATH)"
mkdir -p .nix/fix-python
nix_libs_build_status=$(
Expand Down

0 comments on commit 0e46f14

Please sign in to comment.