What is the difference between running manage.py and ./manage.py?

40 views
Skip to first unread message

Malik Rumi

unread,
Aug 3, 2014, 10:03:32 PM8/3/14
to django...@googlegroups.com
Is this a Linux thing?

Lachlan Musicman

unread,
Aug 3, 2014, 10:16:01 PM8/3/14
to django...@googlegroups.com
Not really, it's a Nix thing (ie, OSX and BSD as well as linux).

Basically, if you set the file to be executable (chmod +x) then
./filename is a way of executing using the default file association
(.py is python usually).

The ./ bit indicates "look in the folder we are in" - if the file is
not in the folder you run it from, you will need to use the full path.

In other words, the difference is merely one of execution, both give
the same result, since it's two ways of doing the same thing.

cheers
L.

On 4 August 2014 12:03, Malik Rumi <malik....@gmail.com> wrote:
> Is this a Linux thing?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users...@googlegroups.com.
> To post to this group, send email to django...@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/4b5c91a6-3ee8-4855-96fb-011e87d10d7d%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
You have to be really clever to come up with a genuinely dangerous
thought. I am disheartened that people can be clever enough to do that
and not clever enough to do the obvious thing and KEEP THEIR IDIOT
MOUTHS SHUT about it, because it is much more important to sound
intelligent when talking to your friends.
This post was STUPID.
-----------------------------------------------------------------------------------------------------------
The Most Terrifying Thought Experiment of All Time
http://www.slate.com/articles/technology/bitwise/2014/07/roko_s_basilisk_the_most_terrifying_thought_experiment_of_all_time.html

Javier Guerra Giraldez

unread,
Aug 3, 2014, 10:19:43 PM8/3/14
to django...@googlegroups.com
On Sun, Aug 3, 2014 at 9:03 PM, Malik Rumi <malik....@gmail.com> wrote:
> Is this a Linux thing?


on it's about the PATH variable. it's usually considered less safe to
include '.' (the current directory) in PATH. Of course, that doesn't
stop MS to put it right in the head of the default PATH value.


--
Javier

Malik Rumi

unread,
Aug 4, 2014, 11:36:51 AM8/4/14
to django...@googlegroups.com
Thanks for the clarification!
Reply all
Reply to author
Forward
0 new messages