* various: const.py changes
2007-09-07 Don Allingham <don@gramps-project.org> * src/DateHandler/_Date_fr.py: fix indentation errors 2007-09-07 Don Allingham <don@gramps-project.org> svn: r8948
This commit is contained in:
@ -157,8 +157,8 @@ class Calendar(Report):
|
||||
|
||||
def get_holidays(self, year, country = "United States"):
|
||||
""" Looks in multiple places for holidays.xml files """
|
||||
locations = [const.pluginsDir,
|
||||
os.path.join(const.home_dir,"plugins")]
|
||||
locations = [const.PLUGINS_DIR,
|
||||
os.path.join(const.HOME_DIR,"plugins")]
|
||||
holiday_file = 'holidays.xml'
|
||||
for dir in locations:
|
||||
holiday_full_path = os.path.join(dir, holiday_file)
|
||||
@ -1152,8 +1152,8 @@ class Holidays:
|
||||
|
||||
def get_countries():
|
||||
""" Looks in multiple places for holidays.xml files """
|
||||
locations = [const.pluginsDir,
|
||||
os.path.join(const.home_dir,"plugins")]
|
||||
locations = [const.PLUGINS_DIR,
|
||||
os.path.join(const.HOME_DIR,"plugins")]
|
||||
holiday_file = 'holidays.xml'
|
||||
country_list = []
|
||||
for dir in locations:
|
||||
|
Reference in New Issue
Block a user