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

Remove old references to /share #67

Merged
merged 1 commit into from
Aug 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions gnd/bin/socket_event_decoder_to_bin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ assembly_events_file=$1

if test -z "$assembly_events_file"
then
echo "usage: socket_event_decoder_to_bin.sh /share/path/to/assembly_events.py"
echo "usage: socket_event_decoder_to_bin.sh /path/to/assembly_events.py"
echo "description: Convert a python script to a standalone executable with no dependencies that can run on any platform. You must provide the assembly events file that this program will be run with in production."
echo "NOTE: your path to assembly_events.py must start with /share, not /home. There is an issue when starting from /home."
exit 1
fi

Expand Down
4 changes: 2 additions & 2 deletions redo/util/performance.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ def _optimize_path():
env_paths = []
other_paths = []
for p in sys.path:
if not (p.startswith("/share") or p.startswith("/home")):
if not p.startswith("/home"):
system_paths.append(p)
elif "env/python" in p:
elif ".py_env" in p:
env_paths.append(p)
else:
other_paths.append(p)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,11 @@ def __init__(self):

class product_packets_html(product_packets_gen, generator_base):
def __init__(self):
from os import environ
product_packets_gen.__init__(
self,
template_filename="name.html",
additional_template_dirs=["/share/adamant/gen/templates"],
additional_template_dirs=[environ["ADAMANT_DIR"] + os.sep + "gen" + os.sep + "templates"],
)

def generate(self, input_filename):
Expand Down