looker-open-source / pylookml

A pythonic api for automatic lookml
https://pylookml.readthedocs.io/en/latest/introduction.html
MIT License
44 stars 22 forks source link

View.setFolder doesn't write in that folder, only in working directory #3

Closed bryan-at-looker closed 4 years ago

bryan-at-looker commented 5 years ago

This writes it in working directory

order_items.setFolder('new')
order_items.write(overWriteExisting=True)

full path also writes in working directory

order_items.setFolder('~/Documents/GitHub/schema_webhook/new')
order_items.write(overWriteExisting=True)
bryan-at-looker commented 5 years ago

~could be order of operations at play here.~ i take that back

bryan-at-looker commented 5 years ago
    def setFolder(self,folder):
        self.outputFolder = folder
        return self

doesn't reset the View.path, View.write uses the View.path

hugoselbie commented 4 years ago

fixed this updating the dict in the init class @bryan-at-looker