Skip to content

Instantly share code, notes, and snippets.

@Alakhator

Alakhator/ob4.py

Created Apr 6, 2020
Embed
What would you like to do?
import os
import pathlib
if "models" in pathlib.Path.cwd().parts:
while "models" in pathlib.Path.cwd().parts:
os.chdir('..')
elif not pathlib.Path('models').exists():
!git clone --depth 1 https://github.com/tensorflow/models
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.