1. Ian Schenck
  2. celery-pylons

Commits

ianschenck  committed 9842308

Using os.path.realpath to resolve path to ini file.

  • Participants
  • Parent commits 0d81528
  • Branches default

Comments (0)

Files changed (1)

File celerypylons/commands.py

View file
 ## @@ We have to do some rather odd bootstrapping in order to get
 ## celery to load correctly.
 try:
-    path_to_ini_file = sys.argv[2]
+    path_to_ini_file = os.path.realpath(sys.argv[2])
     conf = paste.deploy.appconfig('config:' + path_to_ini_file)
     config.init_app(conf.global_conf,conf.local_conf)
     if os.environ.get('CELERY_CONFIG_MODULE', None) is not None: