Changeset 4e30f55b8a68…
Parent ee0acea9b9be…
by
Changes to 4 files · Browse files at 4e30f55b8a68 Showing diff from parent ee0acea9b9be Diff from another changeset...
@@ -32,7 +32,7 @@ %prep
%setup -q -n tortoisehg-hg
-cat > thgutil/__paths__.py << EOT
+cat > thgutil/config.py << EOT
bin_path = "%{_bindir}"
license_path = "%{_docdir}/%{name}-%{version}/COPYING.txt"
locale_path = "%{_datadir}/locale"
|
Change 1 of 1
Show Entire File
contrib/win32/config.py
Stacked
renamed from contrib/win32/__paths__.py
|
||
---|---|---|
@@ -1,12 +1,12 @@ """
-__paths__.py
+config.py
Copyright (C) 2009 Steve Borho <steve@borho.org>
This software may be used and distributed according to the terms
of the GNU General Public License, incorporated herein by reference.
"""
-# This version of __paths__.py is used in the binary installer
+# This version of config.py is used in the binary installer
# distributions of TortoiseHg on Windows. Since we no longer need to
# worry about Python shell extensions, we can use the path of the
# current executable to find our package data.
|
@@ -123,10 +123,10 @@ _data_files += [('lib/nautilus/extensions-2.0/python',
['contrib/nautilus-thg.py'])]
- # Create a __paths__.py. Distributions will need to supply their own
- paths_file = os.path.join('thgutil', '__paths__.py')
- if not os.path.exists(paths_file):
- f = open(paths_file, "w")
+ # Create a config.py. Distributions will need to supply their own
+ cfgfile = os.path.join('thgutil', 'config.py')
+ if not os.path.exists(cfgfile):
+ f = open(cfgfile, "w")
f.write('bin_path = "/usr/bin"\n')
f.write('license_path = "/usr/share/doc/tortoisehg/Copying.txt.gz"\n')
f.write('locale_path = "/usr/share/locale"\n')
|
@@ -7,7 +7,7 @@ """
try:
- from __paths__ import icon_path, bin_path, license_path, locale_path
+ from config import icon_path, bin_path, license_path, locale_path
except ImportError:
icon_path, bin_path, license_path, locale_path = None, None, None, None
|
Loading...