Skip to content

Commit

Permalink
Change the /etc path to not be absolute
Browse files Browse the repository at this point in the history
  • Loading branch information
thatch45 committed May 24, 2011
1 parent b05f069 commit 0f7f896
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion setup.py
Expand Up @@ -3,6 +3,7 @@
The setup script for salt
'''
import os
import sys
from distutils.core import setup
from distutils.extension import Extension
from distutils.sysconfig import get_python_lib, PREFIX
Expand All @@ -15,6 +16,7 @@
doc_path = os.path.join(PREFIX, 'share/doc/', NAME + '-' + VER)
example_path = os.path.join(doc_path, 'examples')
template_path = os.path.join(example_path, 'templates')
etc_path = os.path.join(os.path.dirname(os.path.normpath(sys.prefix)) + 'etc')

setup(name=NAME,
version=VER,
Expand Down Expand Up @@ -51,7 +53,7 @@
'scripts/salt-cp',
'scripts/salt-call',
'scripts/salt'],
data_files=[('etc/salt',
data_files=[(os.path.join(etc_path),
['conf/master',
'conf/minion',
]),
Expand Down

0 comments on commit 0f7f896

Please sign in to comment.