Do not copy the backends file
This commit is contained in:
parent
f87ac66a73
commit
bbe4473ac4
1 changed files with 1 additions and 6 deletions
|
|
@ -3,7 +3,6 @@
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
import shutil
|
|
||||||
|
|
||||||
if len(sys.argv) < 2:
|
if len(sys.argv) < 2:
|
||||||
print "Usage: %s SCRIPTNAME [args]" % sys.argv[0]
|
print "Usage: %s SCRIPTNAME [args]" % sys.argv[0]
|
||||||
|
|
@ -20,11 +19,7 @@ if not os.path.isdir(wd):
|
||||||
env = os.environ.copy()
|
env = os.environ.copy()
|
||||||
env['PYTHONPATH'] = project
|
env['PYTHONPATH'] = project
|
||||||
env['WEBOOB_WORKDIR'] = wd
|
env['WEBOOB_WORKDIR'] = wd
|
||||||
|
env['WEBOOB_BACKENDS'] = os.path.expanduser('~/.config/weboob/backends')
|
||||||
shutil.copyfile(
|
|
||||||
os.path.expanduser('~/.config/weboob/backends'),
|
|
||||||
os.path.join(project, wd, 'backends'))
|
|
||||||
os.chmod(os.path.join(project, wd, 'backends'), 0600)
|
|
||||||
|
|
||||||
with open(os.path.join(wd, 'sources.list'), 'w') as f:
|
with open(os.path.join(wd, 'sources.list'), 'w') as f:
|
||||||
f.write("file://%s\n" % os.path.join(project, 'modules'))
|
f.write("file://%s\n" % os.path.join(project, 'modules'))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue