Generalize meta_path json file creation in load.py [#4540]
NONE
_The documentation is not available anymore as the PR was closed or merged._
2022-06-28T21:55:25Z
https://github.com/huggingface/datasets/pull/4590#issuecomment-1169319899
https://api.github.com/repos/huggingface/datasets/issues/4590
IC_kwDODunzps5Fsmfb
https://api.github.com/repos/huggingface/datasets/issues/comments/1169319899/reactions
2022-07-07T13:29:12Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1169319899
https://avatars.githubusercontent.com/u/99929124?v=4
https://api.github.com/users/HuggingFaceDocBuilderDev/events{/privacy}
https://api.github.com/users/HuggingFaceDocBuilderDev/followers
https://api.github.com/users/HuggingFaceDocBuilderDev/following{/other_user}
https://api.github.com/users/HuggingFaceDocBuilderDev/gists{/gist_id}
https://github.com/HuggingFaceDocBuilderDev
HuggingFaceDocBuilderDev
U_kgDOBfTMJA
https://api.github.com/users/HuggingFaceDocBuilderDev/orgs
https://api.github.com/users/HuggingFaceDocBuilderDev/received_events
https://api.github.com/users/HuggingFaceDocBuilderDev/repos
https://api.github.com/users/HuggingFaceDocBuilderDev/starred{/owner}{/repo}
https://api.github.com/users/HuggingFaceDocBuilderDev/subscriptions
User
https://api.github.com/users/HuggingFaceDocBuilderDev
public
CONTRIBUTOR
@albertvillanova,  Can you please review this PR for Issue #4540 
2022-07-07T03:36:38Z
https://github.com/huggingface/datasets/pull/4590#issuecomment-1177015477
https://api.github.com/repos/huggingface/datasets/issues/4590
IC_kwDODunzps5GJ9S1
https://api.github.com/repos/huggingface/datasets/issues/comments/1177015477/reactions
2022-07-07T03:36:38Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1177015477
https://avatars.githubusercontent.com/u/20517962?v=4
https://api.github.com/users/VijayKalmath/events{/privacy}
https://api.github.com/users/VijayKalmath/followers
https://api.github.com/users/VijayKalmath/following{/other_user}
https://api.github.com/users/VijayKalmath/gists{/gist_id}
https://github.com/VijayKalmath
VijayKalmath
MDQ6VXNlcjIwNTE3OTYy
https://api.github.com/users/VijayKalmath/orgs
https://api.github.com/users/VijayKalmath/received_events
https://api.github.com/users/VijayKalmath/repos
https://api.github.com/users/VijayKalmath/starred{/owner}{/repo}
https://api.github.com/users/VijayKalmath/subscriptions
User
https://api.github.com/users/VijayKalmath
public
CONTRIBUTOR
@lhoestq  Thank you for merging the PR . Is there a slack channel for contributing to the datasets library. I would love to work on the library and make meaningful contributions.
2022-07-07T20:52:59Z
https://github.com/huggingface/datasets/pull/4590#issuecomment-1178214911
https://api.github.com/repos/huggingface/datasets/issues/4590
IC_kwDODunzps5GOiH_
https://api.github.com/repos/huggingface/datasets/issues/comments/1178214911/reactions
2022-07-07T20:52:59Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1178214911
https://avatars.githubusercontent.com/u/20517962?v=4
https://api.github.com/users/VijayKalmath/events{/privacy}
https://api.github.com/users/VijayKalmath/followers
https://api.github.com/users/VijayKalmath/following{/other_user}
https://api.github.com/users/VijayKalmath/gists{/gist_id}
https://github.com/VijayKalmath
VijayKalmath
MDQ6VXNlcjIwNTE3OTYy
https://api.github.com/users/VijayKalmath/orgs
https://api.github.com/users/VijayKalmath/received_events
https://api.github.com/users/VijayKalmath/repos
https://api.github.com/users/VijayKalmath/starred{/owner}{/repo}
https://api.github.com/users/VijayKalmath/subscriptions
User
https://api.github.com/users/VijayKalmath
public
MEMBER
Hi ! Sure feel free to join our discord ^^ 
https://discuss.huggingface.co/t/join-the-hugging-face-discord/11263 so that we can discuss together mor eeasily. Otherwise everything happens on github ;)
2022-07-08T14:55:13Z
https://github.com/huggingface/datasets/pull/4590#issuecomment-1179080852
https://api.github.com/repos/huggingface/datasets/issues/4590
IC_kwDODunzps5GR1iU
https://api.github.com/repos/huggingface/datasets/issues/comments/1179080852/reactions
2022-07-08T14:55:13Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1179080852
https://avatars.githubusercontent.com/u/42851186?v=4
https://api.github.com/users/lhoestq/events{/privacy}
https://api.github.com/users/lhoestq/followers
https://api.github.com/users/lhoestq/following{/other_user}
https://api.github.com/users/lhoestq/gists{/gist_id}
https://github.com/lhoestq
lhoestq
MDQ6VXNlcjQyODUxMTg2
https://api.github.com/users/lhoestq/orgs
https://api.github.com/users/lhoestq/received_events
https://api.github.com/users/lhoestq/repos
https://api.github.com/users/lhoestq/starred{/owner}{/repo}
https://api.github.com/users/lhoestq/subscriptions
User
https://api.github.com/users/lhoestq
public
# What does this PR do?

## Summary

*In function `_copy_script_and_other_resources_in_importable_dir`, using string split when generating `meta_path` throws error in the edge case raised in #4540.*

## Additions
-

## Changes
- Changed meta_path to use `os.path.splitext` instead of using `str.split` to generalize code.

## Deletions
-
## Issues Addressed : 

Fixes #4540