python - Filesystem: Where would I place a program that makes a new project? -


so have written small generator make of work easier. produce html banners , asked make between fifteen , thirty-five @ time. instead of going through idiot , copy-pasting , modifying them one-by-one, abstracted out unique elements , made generator make them in python. has increased production factor of ten, i'm pretty happy it.

up now, it's been under active improvement while used it, it's more or less mature @ point , i'd take 1 step further ceasing current pattern of copying latest client folder make next 1 , write script make new folder me unchanging template. maybe write in convert older clients new templates or something. whatever.

i'm not sure in linux filesystem should go, though. /usr/local/bin looks it's binaries, , /usr/local/lib has important things python in it. /usr/local/src candidate, figured best check first, since won't moved once it's in.

which of these (or other location) best place in?

many thanks

i suggest set little project in way uses setuptools console scripts. can either install virtualenv, or distributions python distro, , "executable" (actually shell-script shebang)

a sample setup.py looks this:

import sys setuptools import setup, find_packages import os   setup(     name = "santas-little-helper",     version = "version",     author = "me",     author_email = "me@my.com",     description = "something descriptiv",     packages=["toplevelpackage"],     entry_points={         "console_scripts" : [             "santas-little-helper = toplevelpackage:main",             ],         }, ) 

Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -