/[gnue]/gnue-common/setup.py
ViewVC logotype

Diff of /gnue-common/setup.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.85 by reinhard, Tue Sep 30 16:43:57 2003 UTC revision 1.86 by btami, Sun Oct 5 18:01:54 2003 UTC
# Line 296  class install (distutils.command.install Line 296  class install (distutils.command.install
296      print "creating %s" % file      print "creating %s" % file
297      output = open (file, "w")      output = open (file, "w")
298      output.write ("# This file was generated during installation.\n")      output.write ("# This file was generated during installation.\n")
299        output.write ("import os, sys\n")
300      output.write ("\n")      output.write ("\n")
301      output.write ("lib     = \"%s\"\n" % self._quote (self.install_lib))      output.write ("lib     = \"%s\"\n" % self._quote (self.install_lib))
302      output.write ("scripts = \"%s\"\n" % self._quote (self.install_scripts))      output.write ("scripts = \"%s\"\n" % self._quote (self.install_scripts))
303      output.write ("data    = \"%s\"\n" % self._quote (self.install_data))      output.write ("\n")
304      output.write ("config  = \"%s\"\n" % self._quote (self.install_config))      output.write ("############################\n")
305        output.write ("# This is a workaround for McMillan packaging!!!\n")
306        output.write ("# McMillan sets sys.frozen=1 in packaged exe file.\n")
307        output.write ("############################\n")
308        output.write ("if hasattr(sys, 'frozen'):\n")
309        output.write ("  data    = os.path.join(os.path.dirname (sys.argv[0]), '..')\n")
310        output.write ("  config  = os.path.join(os.path.dirname (sys.argv[0]), '..\\etc')\n")
311        output.write ("else:\n")
312        output.write ("  data    = \"%s\"\n" % self._quote (self.install_data))
313        output.write ("  config  = \"%s\"\n" % self._quote (self.install_config))
314      output.close ()      output.close ()
315    
316    # ---------------------------------------------------------------------------    # ---------------------------------------------------------------------------

Legend:
Removed from v.1.85  
changed lines
  Added in v.1.86

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26