Skip to content

Instantly share code, notes, and snippets.

@yorikvanhavre
Created June 2, 2016 18:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yorikvanhavre/0178b431dfb49d12f7554f20e768c73e to your computer and use it in GitHub Desktop.
Save yorikvanhavre/0178b431dfb49d12f7554f20e768c73e to your computer and use it in GitHub Desktop.
sample fetch script for freecad
class plugin:
author = "xyz"
type = "macro"
description = "this plugin does this"
baseurl = "http://github.com/mymacro"
infourl = "http://github.com/mymacro/README.md"
class Fetch:
def __init__():
installpath = "/path/to/macros"
def getListOfPlugins():
return [plugin1, plugin2,...]
def getInfo(plugin):
return "This plugins does this and that"
def install(plugin):
print "installing..."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment