From 24b4f75ef09a610777f1795282324ac8104bcd08 Mon Sep 17 00:00:00 2001 From: Svenne Krap Date: Sat, 30 Jun 2012 21:03:55 +0200 Subject: [PATCH] allow profile name to be specified on command-line --- save_firefox_urls.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/save_firefox_urls.py b/save_firefox_urls.py index c28857e..e030ae3 100755 --- a/save_firefox_urls.py +++ b/save_firefox_urls.py @@ -17,7 +17,10 @@ import time ts = time.strftime("%Y-%m-%d-%H:%M:%S") -profile = "default" +if len(sys.argv) == 2: + profile = sys.argv[1] +else: + profile = "default" basedir = os.environ['HOME'] + "/.mozilla/firefox/" histdir = os.environ['HOME'] + "/mozhistory"; if not os.path.exists(histdir): -- 2.36.1