Opened 11 months ago

Last modified 10 months ago

#754 new defect

Django root directory discovery in PyInstaller 2.1

Reported by: squishyent@… Owned by: htgoebel
Priority: normal Milestone: PyInstaller 3.0
Component: Hooks Version: develop
Severity: normal Keywords:
Cc:

Description

There is a bug in PyInstaller?.hooks.hookutils.django_find_root_dir(), on line 273 of hookutils.py, which prevents PyInstaller? from discovering the Django root directory. The problem is the line:

if os.isdir(f):

which should be:

if os.isdir(os.path.join(manage_dir, f)):

This prevents the script from examining the folder which contains settings.py and urls.py. I was getting the following warning:

WARNING: No django root directory could be found!

With the suggested update, the script correctly packages my program.

Thanks!

Change History (1)

comment:1 Changed 10 months ago by matysek

  • Milestone set to PyInstaller 3.0
Note: See TracTickets for help on using tickets.