Files
semantic-kernel/python/semantic_kernel/kernel_extensions
Joowon c3fc008ec7 Python: Fix import_native_skill_from_directory (#637)
### Motivation and Context
ve_skill_from_directory`, I've noticed that if
there are 2 or more similar directories(see dir tree below), it doesn't
work correctly.
```
(base)  joowonkim  ~/Repo/sk-consultings/example-thinkpool/poc1-architecture/skills   main ±  tree
.
├── handler_skills
│   ├── AccountHandlerSkill
│   │   └── native_function.py
│   ├── PortfolioHandlerSkill
│   │   └── native_function.py
│   └── StockHandlerSkill
│       └── native_function.py
├── intent_skills
│   └── IntentDetectionSkill
│       └── ParseIntent
│           ├── config.json
│           └── skprompt.txt
```

Importing using absolute paths rather than sys.paths reliably worked as
intended.

### Description
remove `sys.path` related codes and change them into using absolute path
of `native_function.py`
2023-04-26 15:28:58 +00:00
..