Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- |- job.py
- |- src/
- |- utils
- |- jobs
- |- resources
- |- __init__.py
- |- config.json
- |- env_config_job_name.json
- def get_resource(resource_name):
- current_file_dir = os.path.dirname(__file__)
- if '.' in resource_name:
- folder_name, file_name = resource_name.rsplit(".", 1)
- return _read_json(os.path.join(current_file_dir, os.path.join(folder_name, file_name + ".json")))
- else:
- return _read_json(os.path.join(current_file_dir, resource_name + ".json"))
- NotADirectoryError: [Errno 20] Not a directory: 'home/hadoop/dependencies.zip/src/resources/config.json'
Add Comment
Please, Sign In to add comment