Skip to content

Commit

Permalink
Closes #31: Arbitrator not finding transporters when Django is instal…
Browse files Browse the repository at this point in the history
…led. Patch provided by alijosh.
  • Loading branch information
wimleers committed Aug 1, 2011
1 parent 99331c3 commit e131bb0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion code/arbitrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@
import os.path


sys.path.append(os.path.abspath(os.path.join(sys.path[0], 'dependencies')))
# Insert the dependencies directory (which includes copies of parts of Django
# and a full, yet extend, copy django-storages) at the beginning of sys.path,
# to prevent File Conveyor from using the code of a possible Django
# installation on this system.
sys.path.insert(1, os.path.abspath(os.path.join(sys.path[0], 'dependencies')))

sys.path.append(os.path.abspath(os.path.join(sys.path[0], 'processors')))
sys.path.append(os.path.abspath(os.path.join(sys.path[0], 'transporters')))

Expand Down

0 comments on commit e131bb0

Please sign in to comment.