Skip to content

Commit

Permalink
Could it be conf.py path is different? Take 5
Browse files Browse the repository at this point in the history
  • Loading branch information
DinoBektesevic committed Jan 14, 2019
1 parent 1327cba commit f6a85fd
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,11 @@

import os
import sys
on_rtd = bool(os.environ.get("READTHEDOCS", False))
if on_rtd:
pth = __file__.split("lfd/")[0]
sys.path.insert(0, os.path.abspath(pth))
else:
dsktppath = os.path.expanduser("~/Desktop")
sys.path.insert(0, os.path.abspath(dsktppath))

pth = __file__.split("lfd/")[0]
print("ROOT PATH SET TO ", pth)
sys.path.insert(0, os.path.abspath(pth))


#sys.path.insert(0, os.path.abspath("/home/dino/Desktop/lfd"))
#sys.path.insert(0, os.path.abspath('.'))
Expand Down

0 comments on commit f6a85fd

Please sign in to comment.