Commit a1c829f4 authored by Edvard Rejthar's avatar Edvard Rejthar

installation more or less works (less)

parent 9826cf03
# mdmaug@jetpack.xpi je treba nakopirovat do ~/.mozilla/firefox/[1-20]/extensions/mdmaug@jetpack.xpi. To same pro prefs.js
# Pouzita funkce copyfile stary xpi-soubor nahradi.
import os
from shutil import copyfile
#xpiSourceFilepath = "/home/edvard/edvard/skola/diplomka/mdmaug-addon/mdmaug.xpi" # zdrojova cesta k souboru vcetne jmena
#xpiFilename = "mdmaug@jetpack.xpi" # jak ma vypadat jmeno souboru
#profilesDir = "/mnt/mdmaug/home/mdmaug/.mozilla/firefox/" # cesta k rozcestniku profilu v .mozilla
sourceFilepath = "/mnt/mdmaug/home/mdmaug/.mozilla/firefox/0/prefs.js" # zdrojova cesta k souboru vcetne jmena
filenameNew = "prefs.js" # jak ma vypadat jmeno souboru
profilesDir = "/mnt/mdmaug/home/mdmaug/.mozilla/firefox/" # cesta k rozcestniku profilu v .mozilla
#quit("Edit before running")
for profileNum in range(1,21):
dir = profilesDir + str(profileNum) + "/"
if not os.path.exists(dir): os.makedirs(dir)
#dir += "extensions/"
#if not os.path.exists(dir): os.makedirs(dir)
print("From {} to {}".format(sourceFilepath, dir + filenameNew))
copyfile(sourceFilepath, dir + filenameNew)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment