Update of /cvsroot/pywin32/pywin32
In directory sc8-pr-cvs1:/tmp/cvs-serv12139
Modified Files:
setup_win32all.py
Log Message:
Allow this to be run from any directory.
Index: setup_win32all.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/setup_win32all.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** setup_win32all.py 8 Dec 2003 02:09:37 -0000 1.8
--- setup_win32all.py 20 Jan 2004 03:01:33 -0000 1.9
***************
*** 62,65 ****
--- 62,70 ----
except NameError:
this_file = sys.argv[0]
+
+ # We get upset if the cwd is not our source dir, but it is a PITA to
+ # insist people manually CD there first!
+ if os.path.dirname(this_file):
+ os.chdir(os.path.dirname(this_file))
class WinExt (Extension):
|