Skip to content

Option to config python lib path from env var - #5135

Merged
drpngx merged 1 commit into
tensorflow:masterfrom
villasv:master
Oct 23, 2016
Merged

drpngx merged 1 commit into
tensorflow:masterfrom
villasv:master

Conversation

@villasv

@villasv villasv commented Oct 22, 2016

Copy link
Copy Markdown
Contributor

The simplest way to give the option to configure python library path from environment variables, targeting the issue tensorflow/serving#216 about a scriptable complete configuration for tensorflow + serving.

@mention-bot

Copy link
Copy Markdown

@villasv, thanks for your PR! By analyzing the history of the files in this pull request, we identified @meteorcloudy, @itsmeolivia and @tensorflower-gardener to be potential reviewers.

@tensorflow-jenkins

Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

@googlebot

Copy link
Copy Markdown

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed, please reply here (e.g. I signed it!) and we'll verify. Thanks.


  • If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Check your existing CLA data and verify that your email is set on your git commits.
  • If you signed the CLA as a corporation, please let us know the company's name.

@villasv

villasv commented Oct 22, 2016

Copy link
Copy Markdown
Contributor Author

@googlebot Done.

@googlebot

Copy link
Copy Markdown

CLAs look good, thanks!

PYTHON_LIB_PATH="$b"
fi
fi
if test -d "$PYTHON_LIB_PATH" -a -x "$PYTHON_LIB_PATH"; then

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why not an else branch? I guess this will only work with a single directory?

@villasv villasv Oct 22, 2016 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The test is the same as before (it was applied to the b input variable. I think that should always be a single directory?)
I made a sepparate "if" branch so this tests lib path both in the env var and the cmd input cases.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ah, ok, that's fine then.

@drpngx

drpngx commented Oct 22, 2016

Copy link
Copy Markdown
Contributor

Jenkins, test this please.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants