Guest User

Untitled

a guest
May 24th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. |- job.py
  2. |- src/
  3. |- utils
  4. |- jobs
  5. |- resources
  6. |- __init__.py
  7. |- config.json
  8. |- env_config_job_name.json
  9.  
  10. def get_resource(resource_name):
  11. current_file_dir = os.path.dirname(__file__)
  12. if '.' in resource_name:
  13. folder_name, file_name = resource_name.rsplit(".", 1)
  14. return _read_json(os.path.join(current_file_dir, os.path.join(folder_name, file_name + ".json")))
  15. else:
  16. return _read_json(os.path.join(current_file_dir, resource_name + ".json"))
  17.  
  18. NotADirectoryError: [Errno 20] Not a directory: 'home/hadoop/dependencies.zip/src/resources/config.json'
Add Comment
Please, Sign In to add comment