You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
457 B
Python
20 lines
457 B
Python
import os
|
|
import sys
|
|
|
|
from invoke import task
|
|
|
|
|
|
@task
|
|
def sync_env(c):
|
|
"""Update the local virtualenv with pip-sync"""
|
|
if not os.environ.get("VIRTUAL_ENV"):
|
|
print("You are operating outside of a virtualenv. Skipping sync...")
|
|
sys.exit(1)
|
|
print("Updating your virtualenv dependencies!")
|
|
c.run("pip-sync ./requirements.txt ./dev_requirements.txt")
|
|
|
|
|
|
@task
|
|
def start_dev(c):
|
|
c.run("python3 -m moteus_gui.tview --devices=1")
|