Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
58596909
Commit
58596909
authored
Jun 04, 2002
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
import base64 at the top to avoid two different imports at other times
parent
54e7ddc6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
command/bdist_wininst.py
command/bdist_wininst.py
+2
-2
No files found.
command/bdist_wininst.py
View file @
58596909
...
...
@@ -8,6 +8,7 @@ exe-program."""
__revision__
=
"$Id$"
import
sys
,
os
,
string
import
base64
from
distutils.core
import
Command
from
distutils.util
import
get_platform
from
distutils.dir_util
import
create_tree
,
remove_tree
...
...
@@ -231,7 +232,6 @@ class bdist_wininst (Command):
# create_exe()
def
get_exe_bytes
(
self
):
import
base64
return
base64
.
decodestring
(
EXEDATA
)
# class bdist_wininst
...
...
@@ -248,7 +248,7 @@ if __name__ == '__main__':
# - Built wininst.exe from the MSVC project file distutils/misc/wininst.dsw
# - Execute this file (distutils/distutils/command/bdist_wininst.py)
import
re
,
base64
import
re
moddata
=
open
(
"bdist_wininst.py"
,
"r"
).
read
()
exedata
=
open
(
"../../misc/wininst.exe"
,
"rb"
).
read
()
print
"wininst.exe length is %d bytes"
%
len
(
exedata
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment