klipstein/dojango — Issue #39: 39 - dojobuild on Windows: if Python is installed on other drive than the drive where the build is being run from... 
Author: klipstein
Created: 2011-11-06 12:57:43+00:00
State: open

What steps will reproduce the problem?
1. install python on C:
2. unpack dojango on D:
3. try manage.py dojobuild

What is the expected output? What do you see instead?
the command that manage.py dojobuild is running is "cd c:\python... &&
build.bat" . The problem is, that if I am on drive D:, doing cd
c:\python... changes the current directory of drive C:, but it does not
change the current drive.

So, for the command to work we need doing "C: && cd c:\python..."

I propose adding:

if sys.platform == 'win32':
exe_command = os.path.splitdrive(buildscript_dir)[0] + ' && ' +
exe_command

soon after exe_command is initialized in management/commands/dojobuild.py

Original link: http://code.google.com/p/dojango/issues/detail?id=39