Code Repositories xandikos / 3c2b634
Make running from source dir a bit easier. Jelmer Vernooń≥ 3 years ago
1 changed file(s) with 6 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
1717 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
1818 # MA 02110-1301, USA.
1919
20 import os
2021 import sys
22
23 # running from source dir?
24 if os.path.join(os.path.dirname(__file__), '..', 'xandikos'):
25 sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
26
2127
2228 from xandikos.web import main
2329