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

replace_paths is not working correctly #247

Closed
kutu opened this issue Feb 27, 2017 · 1 comment
Closed

replace_paths is not working correctly #247

kutu opened this issue Feb 27, 2017 · 1 comment

Comments

@kutu
Copy link

kutu commented Feb 27, 2017

buildOptions = dict(
    replace_paths = '*=',
)

executables = [
    Executable('app.py'),
]

setup(name='app',
      version = '1.0.0',
      description = 'app',
      options = dict(build_exe = buildOptions),
      executables = executables)

replaces paths with = instead of nothing

Traceback (most recent call last):
  File "<frozen importlib._bootstrap>", line 2237, in _find_and_load
  File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 1191, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 1161, in _load_backward_compatible
  File "=__startup__.py", line 12, in <module>
  File "<frozen importlib._bootstrap>", line 2237, in _find_and_load
  File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 1191, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 1161, in _load_backward_compatible
  File "=Console.py", line 24, in <module>
  File "=app.py", line 435, in <module>
  File "=tornado\ioloop.py", line 862, in start
  File "=tornado\platform\select.py", line 63, in poll
@nickvandewiele
Copy link

the following format worked for me:

'replace_paths': [("*", "")],

I agree, the documentation on this option could be formulated less ambiguously.
http://cx-freeze.readthedocs.io/en/latest/distutils.html#build-exe

The relevant lines in the code can be found here:
https://github.com/anthony-tuininga/cx_Freeze/blob/master/cx_Freeze/finder.py#L481

@kutu kutu closed this as completed Jun 16, 2017
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

No branches or pull requests

2 participants