티스토리 뷰
728x90
import inspect
import os
import sys
currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
parentdir = os.path.dirname(currentdir)
sys.path.insert(0, parentdir)
https://stackoverflow.com/questions/714063/importing-modules-from-parent-folder
Importing modules from parent folder
I am running Python 2.5. This is my folder tree: ptdraft/ nib.py simulations/ life/ life.py (I also have __init__.py in each folder, omitted here for readability) How do I import ...
stackoverflow.com
728x90
'공부 (@Deprecated)' 카테고리의 다른 글
| [Python] ImportError: pycurl: libcurl link-time ssl backend (openssl) is different from compile-time ssl backend (0) | 2021.01.09 |
|---|---|
| [Django] reverse query results (+ desc & limit) (0) | 2021.01.09 |
| [HDFS] check exists & zero file; check directory size (1) | 2021.01.08 |
| [Pyspark] show all results (0) | 2021.01.08 |
| [Regexp] ignore case sensitivity (0) | 2021.01.08 |
댓글
250x250
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- COUNT
- 테슬라 레퍼럴 코드 확인
- 팔로워 수 세기
- 테슬라
- 김달
- Kluge
- 메디파크 내과 전문의 의학박사 김영수
- 테슬라 리퍼럴 코드 혜택
- 레퍼럴
- 테슬라 레퍼럴 적용 확인
- 모델 Y 레퍼럴
- 유투브
- 연애학개론
- wlw
- 테슬라 크레딧 사용
- 테슬라 추천
- Bot
- 개리마커스
- 클루지
- 테슬라 레퍼럴
- 어떻게 능력을 보여줄 것인가?
- 테슬라 리퍼럴 코드
- 테슬라 리퍼럴 코드 생성
- follower
- 인스타그램
- 모델y
- 책그림
- 할인
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| 16 | 17 | 18 | 19 | 20 | 21 | 22 |
| 23 | 24 | 25 | 26 | 27 | 28 | 29 |
| 30 |
글 보관함
