Skip to content

Instantly share code, notes, and snippets.

@dchuvardynskyi
Created February 14, 2020 20:26
Show Gist options
  • Select an option

  • Save dchuvardynskyi/fe760db4bbebf71bf8565cd9c61773cb to your computer and use it in GitHub Desktop.

Select an option

Save dchuvardynskyi/fe760db4bbebf71bf8565cd9c61773cb to your computer and use it in GitHub Desktop.
Application class
class Application:
def __init__(self, name, requirements, constraints=None, path='', executable_links=None, executables_dir=()):
self.name = name
self.requirements = requirements
self.constraints = {} if constraints is None else constraints
self.path = path
self.executable_links = [] if executable_links is None else executable_links
self.executables_dir = executables_dir
self.additional_items = []
def __repr__(self):
return f'Application({self.name!r},{self.requirements!r},{self.constraints!r},{self.path!r},{self.executable_links!r},{self.executables_dir!r},{self.additional_items!r})'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment