Skip to content

Instantly share code, notes, and snippets.

@AlJohri
Created January 29, 2019 04:25
Show Gist options
  • Save AlJohri/25d28acacbbc96f112220611ccc8e09a to your computer and use it in GitHub Desktop.
Save AlJohri/25d28acacbbc96f112220611ccc8e09a to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
import sys
from dvc.project import Project
from dvc.stage import Stage
stage_file = sys.argv[1]
dvc = Project()
with dvc.state:
stage = Stage.load(dvc, stage_file)
stage.save()
stage.dump()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment