Changeset 58:b24ccde3e229 in stamper for bin


Ignore:
Timestamp:
Nov 10, 2014, 12:33:51 PM (10 years ago)
Author:
Borja Lopez <borja@…>
Branch:
default
Phase:
public
Message:

Use a config file for the setup of certain parameters, instead of
hardcoded global variables (ugh!)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bin/stamp

    r35 r58  
    33import sys
    44from datetime import datetime
    5 from stamper import DATETIME_FORMAT, Stamper
     5from stamper import Stamper
    66
    77
     
    2424    if len(sys.argv) == 1:
    2525        # stamp!
    26         s.stamp(datetime.today().strftime(DATETIME_FORMAT),
     26        s.stamp(datetime.today().strftime(s.datetime_format),
    2727                None, None, None)
    2828
     
    3535        customer = sys.argv[1]
    3636        description = ' '.join(sys.argv[2:])
    37         s.stamp(current_start, datetime.today().strftime(DATETIME_FORMAT),
     37        s.stamp(current_start, datetime.today().strftime(s.datetime_format),
    3838                customer, description)
    3939
Note: See TracChangeset for help on using the changeset viewer.