Set Path For Another Directory

[Solved] Set Path For Another Directory | Ruby - Code Explorer | yomemimo.com
Question : Set path for another directory

Answered by : deepak-7gb47giahgb5

import sys
sys.path.append('path_to_misc')
#let say path_to_misc : /home/admin/python/project/misc
import inner
result = inner.introduce()
print(result)

Source : https://www.quizcure.com/python/modulenotfounderror-no-module-named-exceptions | Last Update : Sun, 07 Nov 21

Answers related to set path for another directory

Code Explorer Popular Question For Ruby