mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-05 08:03:40 +00:00
Add --config switch to specify the config directory on startup. Patch
from slurdge.
This commit is contained in:
parent
2b519730bc
commit
abc9534f7f
@ -48,8 +48,12 @@ import deluge.pref
|
|||||||
|
|
||||||
parser = OptionParser(usage="%prog [options] [torrents to add]",
|
parser = OptionParser(usage="%prog [options] [torrents to add]",
|
||||||
version=deluge.common.PROGRAM_VERSION)
|
version=deluge.common.PROGRAM_VERSION)
|
||||||
|
parser.add_option("-c", "--config", dest="config", help="Sets the configuration path")
|
||||||
(options, args) = parser.parse_args()
|
(options, args) = parser.parse_args()
|
||||||
|
|
||||||
|
if (options.config != None):
|
||||||
|
deluge.common.CONFIG_DIR = options.config
|
||||||
|
|
||||||
def upgrade_old_persistent_state():
|
def upgrade_old_persistent_state():
|
||||||
pstate_file_path = os.path.join(deluge.common.CONFIG_DIR,
|
pstate_file_path = os.path.join(deluge.common.CONFIG_DIR,
|
||||||
deluge.core.STATE_FILENAME)
|
deluge.core.STATE_FILENAME)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user