Skip to content

Commit

Permalink
Merge pull request #67 from dinkelk/rm-share
Browse files Browse the repository at this point in the history
Remove old references to /share
  • Loading branch information
dinkelk authored Aug 6, 2024
2 parents 253767d + d4f034b commit 8a837f9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
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

0 comments on commit 8a837f9

Please sign in to comment.