change settings object for packages too

This commit is contained in:
Job Evers-Meltzer 2016-10-27 14:57:02 -05:00
parent 862055a6de
commit e70ecc8ac9
5 changed files with 9 additions and 9 deletions

View file

@ -24,7 +24,7 @@ if not os.path.isfile(lbrycrdd_path_conf):
from lbrynet.lbrynet_daemon.DaemonServer import DaemonServer
from lbrynet.lbrynet_daemon.DaemonRequest import DaemonRequest
from lbrynet import settings
from lbrynet.conf import settings
from lbrynet.core import utils

View file

@ -2,14 +2,14 @@
import os
from setuptools import setup
from lbrynet.conf import APP_NAME, ICON_PATH
from lbrynet.conf import settings
APP = [os.path.join('lbrygui', 'main.py')]
DATA_FILES = []
DATA_FILES.append('app.icns')
OPTIONS = {
'iconfile': ICON_PATH,
'iconfile': settings.ICON_PATH,
'plist': {
'CFBundleIdentifier': 'io.lbry.LBRY',
'LSUIElement': True,
@ -22,7 +22,7 @@ OPTIONS = {
setup(
name=APP_NAME,
name=settings.APP_NAME,
app=APP,
options={'py2app': OPTIONS},
data_files=DATA_FILES,

View file

@ -1,6 +1,6 @@
from setuptools import setup
import os
from lbrynet.conf import PROTOCOL_PREFIX
from lbrynet.conf import settings
APP = [os.path.join('lbry_uri_handler', 'LBRYURIHandler.py')]
DATA_FILES = []
@ -12,7 +12,7 @@ OPTIONS = {'argv_emulation': True,
'CFBundleURLTypes': [
{
'CFBundleURLTypes': 'LBRYURIHandler',
'CFBundleURLSchemes': [PROTOCOL_PREFIX]
'CFBundleURLSchemes': [settings.PROTOCOL_PREFIX]
}
]
}
@ -23,4 +23,4 @@ setup(
data_files=DATA_FILES,
options={'py2app': OPTIONS},
setup_requires=['py2app'],
)
)

View file

@ -5,7 +5,7 @@ import sys
from time import sleep
from lbrynet.lbrynet_daemon.auth.client import LBRYAPIClient
from lbrynet import settings
from lbrynet.conf import settings
class LBRYURIHandler(object):

View file

@ -21,7 +21,7 @@ except ImportError:
from lbrynet.core import utils
from lbrynet.lbrynet_daemon.DaemonServer import DaemonServer
from lbrynet.lbrynet_daemon.DaemonRequest import DaemonRequest
from lbrynet import settings
from lbrynet.conf import settings
from packaging.uri_handler.LBRYURIHandler import LBRYURIHandler