From: Ira W. Snyder Date: Wed, 10 Jan 2007 08:13:24 +0000 (-0800) Subject: [PORTABILITY] Use os.join on paths X-Git-Tag: v2.1.0~9 X-Git-Url: https://www.irasnyder.com/gitweb/?a=commitdiff_plain;h=3c31e2eac4d89afe5acf95f6c242c8ed819c5300;p=animesorter.git [PORTABILITY] Use os.join on paths Switch to using os.join() for paths instead of just hardcoding everything. Signed-off-by: Ira W. Snyder --- 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)$'