Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kill exec(code) #655

Merged
merged 1 commit into from
May 20, 2020
Merged

Kill exec(code) #655

merged 1 commit into from
May 20, 2020

Conversation

Hoikas
Copy link
Member

@Hoikas Hoikas commented May 17, 2020

This removes all uses of the exec() function from the Python scripts. This fixes an observed traceback in Python 3 related to exec statements with side effects. The code is also much cleaner as a result.

cPythScopeSolution - Traceback (most recent call last):
File ".\python\kdshTreeRingsSolution.py", line 241, in OnServerInitComplete
self.InitRings()
File ".\python\kdshTreeRingsSolution.py", line 276, in InitRings
ffcode2 = i + "Ring0" + j + "_0" + str(InitState) + ".animation.skipToEnd()"
NameError: name 'InitState' is not defined

@Hoikas Hoikas mentioned this pull request May 17, 2020
Scripts/Python/kdshPillarRoom.py Outdated Show resolved Hide resolved
Scripts/Python/kdshTreeRingsSolution.py Outdated Show resolved Hide resolved
Scripts/Python/tldnShroomieBrain.py Outdated Show resolved Hide resolved
@Hoikas Hoikas merged commit f237b64 into H-uru:master May 20, 2020
@Hoikas Hoikas deleted the kill-exec-code branch May 20, 2020 04:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants