Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.

Commit

Permalink
Move CONFIG_PATH to setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Víctor Terrón committed Oct 7, 2014
1 parent 97cab03 commit 22637e8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion passband.py
Expand Up @@ -45,6 +45,9 @@ class offers is that it makes it possible to recognize as equal filters written
import re
import string

# LEMON module
from setup import CONFIG_PATH

JOHNSON = 'Johnson'
COUSINS = 'Cousins'
GUNN = 'Gunn'
Expand All @@ -55,7 +58,6 @@ class offers is that it makes it possible to recognize as equal filters written
UNKNOWN = 'Unknown'
CUSTOM = 'Custom'

CONFIG_PATH = os.path.expanduser(CONFIG_FILENAME)
CUSTOM_SECTION = 'custom_filters'

def load_custom_filters(path = CONFIG_PATH):
Expand Down
2 changes: 2 additions & 0 deletions setup.py
Expand Up @@ -29,6 +29,7 @@
"""

import os
import os.path
import errno
import shutil
import subprocess
Expand All @@ -41,6 +42,7 @@

# The LEMON configuration file
CONFIG_FILENAME = '~/.lemonrc'
CONFIG_PATH = os.path.expanduser(CONFIG_FILENAME)

def mkiraf(path):
""" Create the IRAF login script and the uparm directory.
Expand Down

0 comments on commit 22637e8

Please sign in to comment.