Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8, 0.8.1, and 0.8.2

thgutil: rename __paths__.py to config.py

Changeset 4e30f55b8a68

Parent ee0acea9b9be

by Steve Borho

Changes to 4 files · Browse files at 4e30f55b8a68 Showing diff from parent ee0acea9b9be Diff from another changeset...

 
32
33
34
35
 
36
37
38
 
32
33
34
 
35
36
37
38
@@ -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
2
 
3
4
5
6
7
8
9
 
10
11
12
 
1
 
2
3
4
5
6
7
8
 
9
10
11
12
@@ -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.
Change 1 of 1 Show Entire File setup.py Stacked
 
123
124
125
126
127
128
129
 
 
 
 
130
131
132
 
123
124
125
 
 
 
 
126
127
128
129
130
131
132
@@ -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')
Change 1 of 1 Show Entire File thgutil/​paths.py Stacked
 
7
8
9
10
 
11
12
13
 
7
8
9
 
10
11
12
13
@@ -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