Update page 'Day 10 homework - Sloetjes '
@@ -122,7 +122,7 @@ Module directory histogram:
|
|||||||
|
|
||||||
**6. Extra credit: use the freeze utility to turn the module-inspector script into a real app.**
|
**6. Extra credit: use the freeze utility to turn the module-inspector script into a real app.**
|
||||||
|
|
||||||
###### setup.py
|
###### setup.py:
|
||||||
```
|
```
|
||||||
import sys
|
import sys
|
||||||
from cx_Freeze import setup, Executable
|
from cx_Freeze import setup, Executable
|
||||||
@@ -130,11 +130,6 @@ from cx_Freeze import setup, Executable
|
|||||||
# Dependencies are automatically detected, but it might need fine tuning.
|
# Dependencies are automatically detected, but it might need fine tuning.
|
||||||
build_exe_options = {"packages": ["os"], "excludes": ["tkinter"]}
|
build_exe_options = {"packages": ["os"], "excludes": ["tkinter"]}
|
||||||
|
|
||||||
# GUI applications require a different base on Windows (the default is for a console application).
|
|
||||||
base = None
|
|
||||||
if sys.platform == "win32":
|
|
||||||
base = "Win32GUI"
|
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="Module Inspector",
|
name="Module Inspector",
|
||||||
version="1.0",
|
version="1.0",
|
||||||
|
|||||||
Reference in New Issue
Block a user