Author: johannes
Date: 2007-05-23 03:04:11 -0500 (Wed, 23 May 2007)
New Revision: 9608
Modified:
trunk/gnue-common/setup.py
Log:
Do not do useless os.path.joins() and dirnames()
Modified: trunk/gnue-common/setup.py
===================================================================
--- trunk/gnue-common/setup.py 2007-05-23 07:56:53 UTC (rev 9607)
+++ trunk/gnue-common/setup.py 2007-05-23 08:04:11 UTC (rev 9608)
@@ -396,8 +396,8 @@
output.write ("# McMillan sets sys.frozen=1 in packaged exe file.\n")
output.write ("############################\n")
output.write ("if hasattr(sys, 'frozen') and sys.platform == 'win32':\n")
- output.write (" data = os.path.join(os.path.dirname(os.path.dirname(sys.argv[0])))\n")
- output.write (" config = os.path.join(os.path.dirname(os.path.dirname(sys.argv[0])), 'etc')\n")
+ output.write (" data = os.path.dirname(os.path.dirname(sys.argv[0]))\n")
+ output.write (" config = os.path.join(data, 'etc')\n")
output.write ("else:\n")
output.write (" data = \"%s\"\n" % self.__quote (self.install_data))
output.write (" config = \"%s\"\n" % self.__quote (self.install_config))
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.