Path question

Peter Teuben teuben at gmail.com
Mon Oct 12 05:43:32 UTC 2020


Not sure why you want to cat the path, echo might make more sense. But it
seems what you need is setting the $PYTHON_PATH to get resources in that
directory.

On Mon, Oct 12, 2020, 00:42 Phil <phillor9 at gmail.com> wrote:

> This seemingly simple operation has me scratching my head.
>
> I have a python script that I want to add to the system menu. I cannot
> run "python3 /path_to_the_script/thescript" outside of it's directory
> because "thescript" needs resources that are also in that directory. Of
> course, "thescript" will run from it's own directory
> (/home/phil/Downloads/Ink_spill).
>
> In an attempt to solves this problem I've added the directory to the
> path but there's something odd going on here, as follows:
>
> phil at phil-ThinkPad-T420:~$ cat $PATH
> cat:
> '/home/phil/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/phil/Downloads/Ink_spill':
>
> No such file or directory
>
> phil at phil-ThinkPad-T420:~$ cd /home/phil/Downloads/Ink_spill
>
> pwd
>
> phil at phil-ThinkPad-T420:~/Downloads/Ink_spill
>
> cat $PATH indicates the directory doesn't exist but it does. What's
> going on?
>
> --
> Regards,
> Phil
>
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20201012/1ccf1f72/attachment.html>


More information about the ubuntu-users mailing list