When I build my branch it builds without any errors. The lhgui.py file
gets the first line changed from:
#! /usr/bin/env python3
to
#!/usr/bin/python
when it is copied to /bin. Which makes the program not work. I'm
wondering if there is something in my Submakefile that is doing that?
I somewhat suspect that this line is the culprit but not sure what to do
with it.
$(Q)$(PYTHON) -c 'import sys; compile(open(sys.argv[1]).read(),
sys.argv[1], "exec")' $<
JT
Submakefile
LHGUI_MODULES = lh_gui
PYTARGETS += ../bin/lhgui ../lib/python/lhgui/__init__.py $(patsubst
%,../lib/python/lhgui/%.py,$(LHGUI_MODULES)) \
PYI18NSRCS += emc/usr_intf/lhgui/lhgui.py $(patsubst
%,emc/usr_intf/lhgui/%.py,$(LHGUI_MODULES)) \
emc/usr_intf/lhgui/lh_gui.ui
../lib/python/lhgui/__init__.py:
@mkdir -p ../lib/python/lhgui
@touch $@
../lib/python/lhgui/%: emc/usr_intf/lhgui/%
@$(ECHO) Syntax checking python script $(notdir $@)
$(Q)$(PYTHON) -c 'import sys; compile(open(sys.argv[1]).read(),
sys.argv[1], "exec")' $<
$(ECHO) Copying python script $(notdir $@)
$(Q)mkdir -p ../lib/python/lhgui
$(Q)cp $< $@
../share/linuxcnc/lh_gui.ui: emc/usr_intf/lhgui/lh_gui.ui
$(ECHO) Copying ui file $(notdir $@)
$(Q)mkdir -p $(dir $@)
$(Q)cp -f $< $@
../bin/lhgui: emc/usr_intf/lhgui/lhgui.py
@$(ECHO) Syntax checking python script $(notdir $@)
$(Q)$(PYTHON) -c 'import sys; compile(open(sys.argv[1]).read(),
sys.argv[1], "exec")' $<
$(ECHO) Copying python script $(notdir $@)
$(Q)(echo '#!$(PYTHON)'; sed '1 { /^#!/d; }' $<) > [email protected] && chmod
+x [email protected] && mv -f [email protected] $@
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers