Subversion Repositories programming

Rev

Rev 129 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 129 Rev 175
Line 2... Line 2...
2
 
2
 
3
import os, re, shutil, sys
3
import os, re, shutil, sys
4
from optparse import OptionParser
4
from optparse import OptionParser
5
 
5
 
6
### DEFAULT CONFIGURATION VARIABLES ###
6
### DEFAULT CONFIGURATION VARIABLES ###
7
DICT_FILE = os.path.expanduser('~/bin/animesorter.dict')
7
DICT_FILE = os.path.expanduser('~/.config/animesorter/animesorter.dict')
8
WORK_DIR =  os.path.expanduser('~/downloads/usenet')
8
WORK_DIR =  os.path.expanduser('~/downloads/usenet')
9
SORT_DIR =  os.path.expanduser('/data/Anime')
9
SORT_DIR =  os.path.expanduser('/data/Anime')
10
 
10
 
11
### Globals
11
### Globals
12
options = {}
12
options = {}
Line 130... Line 130...
130
    options.start_dir = os.path.abspath(options.start_dir)
130
    options.start_dir = os.path.abspath(options.start_dir)
131
    options.output_dir = os.path.abspath(options.output_dir)
131
    options.output_dir = os.path.abspath(options.output_dir)
132
 
132
 
133
    return options
133
    return options
134
 
134
 
135
### MAIN IS HERE ###
-
 
136
if( __name__ == '__main__' ):
135
def main():
137
 
136
 
138
    ## Get Options
137
    ## Get Options
139
    options = get_parsed_options()
138
    options = get_parsed_options()
140
 
139
 
141
    ## Print the program's header
140
    ## Print the program's header
Line 166... Line 165...
166
            ## print header
165
            ## print header
167
            print_dir_header(root)
166
            print_dir_header(root)
168
 
167
 
169
            ## print status
168
            ## print status
170
            print_move_status()
169
            print_move_status()
-
 
170
 
-
 
171
### MAIN IS HERE ###
-
 
172
if __name__ == '__main__':
-
 
173
    main()
-
 
174