Changeset 351


Ignore:
Timestamp:
10/28/09 12:21:43 (10 years ago)
Author:
eliedebrauwer
Message:

Ticket #133, Fix by eliedebrauwer. Remove print of revision (causes issues on win32). fixes[s:trac, t:133]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/game/utilities/parpg_check.py

    r349 r351  
    5959    print 
    6060 
    61 def get_svn_revision(svn_dir): 
    62     """ Returns the current svn revision for the directory we are checking. """ 
    63     try: 
    64         pout = os.popen("svn info %s" % svn_dir) 
    65         svn_rev =  [line for line in pout if re.match('^Revision', line)] 
    66     except: 
    67         pass 
    68     else: 
    69         return svn_rev[0] 
    70  
    71  
    7261def main(): 
    7362    # Check if pylint is installed 
     
    10089    chk_type = opts.check_type 
    10190 
    102     # Print the svn revision we are checking 
    103     try: 
    104         revision = get_svn_revision(base_directory) 
    105     except IndexError: 
    106         print "***** Unable to determine SVN Revision Number\n" 
    107     else: 
    108         print "***** Checking %s for %s.\n" % (revision.rstrip('\n'), chk_type) 
     91    print "***** Checking %s for %s.\n" % (os.path.abspath(base_directory), chk_type) 
    10992 
    11093    # Start crawling for 'py' files 
Note: See TracChangeset for help on using the changeset viewer.