|
1 | 1 | # Script Name : script_count.py
|
2 | 2 | # Author : Craig Richards
|
3 | 3 | # Created : 27th February 2012
|
4 |
| -# Last Modified : 10th May 2012 |
5 |
| -# Version : 1.2 |
| 4 | +# Last Modified : 20th July 2012 |
| 5 | +# Version : 1.3 |
6 | 6 |
|
7 | 7 | # Modifications : 1.1 - 28-02-2012 - CR - Changed inside github and development functions, so instead of if os.name = "posix" do this else do this etc
|
8 | 8 | # : I used os.path.join, so it condensed 4 lines down to 1
|
9 | 9 | # : 1.2 - 10-05-2012 - CR - Added a line to include PHP scripts.
|
| 10 | +# : 1.3 - 20-07-2012 - CR - Added the line to include Batch scripts |
10 | 11 |
|
11 | 12 | # Description : This scans my scripts directory and gives a count of the different types of scripts
|
12 | 13 |
|
@@ -54,8 +55,9 @@ def development(): # Start of the function just to count the
|
54 | 55 |
|
55 | 56 | print '\nYou have the following :\n'
|
56 | 57 | print 'AutoIT:\t' + str(count_files(path, '.au3')) # Run the count_files function to count the files with the extension we pass
|
| 58 | +print 'Batch:\t' + str(count_files(path, ('.bat', ',cmd'))) # 1.3 |
57 | 59 | print 'Perl:\t' + str(count_files(path, '.pl'))
|
58 |
| -print 'PHP:\t' + str(count_files(path, '.php')) |
| 60 | +print 'PHP:\t' + str(count_files(path, '.php')) # 1.2 |
59 | 61 | print 'Python:\t' + str(count_files(path, '.py'))
|
60 | 62 | print 'Shell:\t' + str(count_files(path, ('.ksh', '.sh', '.bash')))
|
61 | 63 | print 'SQL:\t' + str(count_files(path, '.sql'))
|
|
0 commit comments