Skip to content
Browse files

create backend and fs as soon as possible (fixes GH-36)

  • Loading branch information...
1 parent a1a9cdb commit 80c684a981978f73f9bd01c1ef4e0a34a0160270 Klaas Bosteels committed
Showing with 4 additions and 2 deletions.
  1. +4 −2 dumbo/core.py
View
6 dumbo/core.py
@@ -62,6 +62,10 @@ def run(self):
else:
opts = kwargs.get('opts', [])
opts += parseargs(sys.argv[1:])
+
+ # this has to be done early, while all the opts are still there
+ backend = get_backend(opts)
+ fs = backend.create_filesystem(opts)
preoutputsopt = getopt(opts, 'preoutputs')
delinputsopt = getopt(opts, 'delinputs')
@@ -121,8 +125,6 @@ def run(self):
run(*args, **kwargs)
- backend = get_backend(opts)
- fs = backend.create_filesystem(opts)
if not (preoutputsopt and preoutputsopt[0] == 'yes') and input != [-1]:
for initer in input:
if iter == self.deps[initer]:

0 comments on commit 80c684a

Please sign in to comment.
Something went wrong with that request. Please try again.