Skip to content

Commit

Permalink
working on paths
Browse files Browse the repository at this point in the history
  • Loading branch information
ofloveandhate committed Jul 12, 2024
1 parent 7588070 commit 4d0b49a
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,16 @@
html_theme = 'bizstyle'
html_static_path = ['_static']


import os
import sys
sys.path.insert(0, os.path.abspath('../markdown2canvas/'))
sys.path.insert(0, os.path.abspath('./markdown2canvas/'))

_HERE = os.path.dirname(__file__)
_ROOT_DIR = os.path.abspath(os.path.join(_HERE, '..'))
_PACKAGE_DIR = os.path.abspath(os.path.join(_HERE, '../markdown2canvas'))

sys.path.insert(0, _ROOT_DIR)
sys.path.insert(0, _PACKAGE_DIR)

# test the path; not strictly needed
import markdown2canvas

0 comments on commit 4d0b49a

Please sign in to comment.