close Comments you submit will be routed for moderation. If you have an account, please log in first.

Opened 8 months ago

Last modified 7 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:


There is a bug in PyInstaller?.hooks.hookutils.django_find_root_dir(), on line 273 of, 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 and I was getting the following warning:

WARNING: No django root directory could be found!

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


Attachments (0)

Change History (1)

comment:1 Changed 7 months ago by matysek

  • Milestone set to PyInstaller 3.0

Add Comment

Modify Ticket

as new .

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.