From 3c31e2eac4d89afe5acf95f6c242c8ed819c5300 Mon Sep 17 00:00:00 2001 From: "Ira W. Snyder" Date: Wed, 10 Jan 2007 00:13:24 -0800 Subject: [PATCH] [PORTABILITY] Use os.join on paths Switch to using os.join() for paths instead of just hardcoding everything. Signed-off-by: Ira W. Snyder --- animesorter2.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/animesorter2.py b/animesorter2.py index 9dbfea0..605b13b 100755 --- 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)$' -- 2.34.1