Unused var
This commit is contained in:
1 parent
74578db933
commit
63141b5971
2 files changed
-4
No files matched your search
@@ -12,7 +12,6 @@ class Env(object):
|
|||||||
|
|
||||||
''' Environment variables '''
|
''' Environment variables '''
|
||||||
_encoding = ''
|
_encoding = ''
|
||||||
_uses_git = False
|
|
||||||
_debug = False
|
_debug = False
|
||||||
_dev = False
|
_dev = False
|
||||||
_settings = Settings()
|
_settings = Settings()
|
||||||
|
|||||||
@@ -28,8 +28,6 @@ def getOptions(base_path, args):
|
|||||||
dest = 'console_log', help = "Log to console")
|
dest = 'console_log', help = "Log to console")
|
||||||
parser.add_argument('--quiet', action = 'store_true',
|
parser.add_argument('--quiet', action = 'store_true',
|
||||||
dest = 'quiet', help = 'No console logging')
|
dest = 'quiet', help = 'No console logging')
|
||||||
parser.add_argument('--nogit', action = 'store_true',
|
|
||||||
dest = 'nogit', help = 'No git available')
|
|
||||||
parser.add_argument('--daemon', action = 'store_true',
|
parser.add_argument('--daemon', action = 'store_true',
|
||||||
dest = 'daemon', help = 'Daemonize the app')
|
dest = 'daemon', help = 'Daemonize the app')
|
||||||
parser.add_argument('--pid_file', default = os.path.join(data_dir, 'couchpotato.pid'),
|
parser.add_argument('--pid_file', default = os.path.join(data_dir, 'couchpotato.pid'),
|
||||||
@@ -93,7 +91,6 @@ def runCouchPotato(options, base_path, args, data_dir = None, log_dir = None, En
|
|||||||
|
|
||||||
# Register environment settings
|
# Register environment settings
|
||||||
Env.set('encoding', encoding)
|
Env.set('encoding', encoding)
|
||||||
Env.set('uses_git', not options.nogit)
|
|
||||||
Env.set('app_dir', base_path)
|
Env.set('app_dir', base_path)
|
||||||
Env.set('data_dir', data_dir)
|
Env.set('data_dir', data_dir)
|
||||||
Env.set('log_path', os.path.join(log_dir, 'CouchPotato.log'))
|
Env.set('log_path', os.path.join(log_dir, 'CouchPotato.log'))
|
||||||
|
|||||||
Reference in new issue
Block a user