Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: c3cb296b7c
Fetching contributors…

Cannot retrieve contributors at this time

24 lines (20 sloc) 0.602 kb
from setuptools import setup
import os, shutil
setup(name='Toggl CLI',
version='1.0',
description='Python Distribution Utilities',
author='Joseph McCullough',
author_email='joseph@vertstudios.com',
install_requires=['requests'],
packages = ['toggl_cli'],
scripts=['toggl']
)
# Copy .toggl to ~/.toggl if the file doesn't exist.
home = os.path.expanduser("~")
togglFile = os.path.join(home, ".toggl")
try:
open(togglFile)
print "~/.toggl file found."
except IOError:
print "Creating ~/.toggl file..."
shutil.copy( ".toggl", os.path.join(home, ".toggl") )
Jump to Line
Something went wrong with that request. Please try again.