Skip to content

Commit

Permalink
fix windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
benoitc committed Nov 8, 2011
1 parent 6c6bb8b commit 5bbd8d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 1 addition & 4 deletions couchapp/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,7 @@ def copy_helper(path, directory, tname="templates"):
def find_template_dir(name, directory=''):
paths = ['%s' % name, os.path.join('..', name)]
if hasattr(sys, 'frozen'): # py2exe
if os.environ.get("_MEIPASS2") is not None:
modpath = os.environ.get("_MEIPASS2")
else:
modpath = sys.executable
modpath = sys.executable
elif sys.platform == "win32" or os.name == "nt":
modpath = os.path.join(sys.prefix, "Lib", "site-packages",
"couchapp", "templates")
Expand Down
4 changes: 2 additions & 2 deletions resources/win32/couchapp.iss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
AppId={{0CDA65F1-9FD8-42C5-8DD0-F65F7E8B7304}
AppName=Couchapp
AppVerName=Couchapp 0.8.1
AppVerName=Couchapp 1.0.0
AppPublisher=Benoit Chesneau
AppPublisherURL=http:https://github.com/couchapp/couchapp
AppSupportURL=http:https://github.com/couchapp/couchapp
Expand All @@ -16,7 +16,7 @@ DefaultDirName={pf}\Couchapp
DefaultGroupName=Couchapp
LicenseFile=LICENSE
InfoAfterFile=resources\win32\postinstall.txt
OutputBaseFilename=couchapp-0.8.1
OutputBaseFilename=couchapp-1.0.0
Compression=lzma
SolidCompression=yes
SourceDir=..\..
Expand Down

0 comments on commit 5bbd8d0

Please sign in to comment.