projects
/
animesorter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7a4476
)
[PORTABILITY] Use os.join on paths
author
Ira W. Snyder
<devel@irasnyder.com>
Wed, 10 Jan 2007 08:13:24 +0000
(
00:13
-0800)
committer
Ira W. Snyder
<devel@irasnyder.com>
Wed, 10 Jan 2007 08:13:24 +0000
(
00:13
-0800)
Switch to using os.join() for paths instead of just hardcoding everything.
Signed-off-by: Ira W. Snyder <devel@irasnyder.com>
animesorter2.py
patch
|
blob
|
history
diff --git
a/animesorter2.py
b/animesorter2.py
index
9dbfea0
..
605b13b
100755
(executable)
--- a/
animesorter2.py
+++ b/
animesorter2.py
@@
-11,9
+11,9
@@
import shutil
from optparse import OptionParser
### Default Configuration Variables ###
-DICT_FILE =
'~/.config/animesorter2/animesorter.dict'
-WORK_DIR =
'~/downloads/usenet'
-SORT_DIR =
'/data/Anime'
+DICT_FILE =
os.path.join ('~','.config','animesorter2','animesorter.dict')
+WORK_DIR =
os.path.join ('~','downloads','usenet')
+SORT_DIR =
os.path.join ('/','data','Anime')
TYPES_REGEX = '.*(avi|ogm|mkv|mp4|\d\d\d)$'