2013-02-12 07:09:52 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
import os
|
|
|
|
import sys
|
2013-02-12 14:06:39 +00:00
|
|
|
import os
|
|
|
|
|
2013-02-12 07:09:52 +00:00
|
|
|
|
|
|
|
if __name__ == "__main__":
|
2013-02-12 14:06:39 +00:00
|
|
|
root_dir = os.path.normpath(os.path.abspath(os.path.dirname(__file__)))
|
|
|
|
os.chdir(root_dir)
|
|
|
|
|
|
|
|
#using virtualenv's activate_this.py to reorder sys.path
|
|
|
|
activate_this = os.path.join(root_dir, 'bin', 'activate_this.py')
|
|
|
|
execfile(activate_this, dict(__file__=activate_this))
|
|
|
|
|
2013-02-12 10:46:25 +00:00
|
|
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "videopdf.settings")
|
2013-02-12 07:09:52 +00:00
|
|
|
|
|
|
|
from django.core.management import execute_from_command_line
|
|
|
|
|
|
|
|
execute_from_command_line(sys.argv)
|