On 7, 10:39, dmitrey <[EMAIL PROTECTED]> wrote:
> Hi all,
> I guess this question was asked many times before, but I don't know
> keywords for web search.
>
> Thank you in advance, D.
import sys
file_name = sys.argv[0]
this?
--
http://mail.python.org/mailman/listinfo/python-lis
dmitrey wrote:
> Hi all,
> I guess this question was asked many times before, but I don't know
> keywords for web search.
>
> Thank you in advance, D.
In the future, please ask your question in the body of your message
(not just in the subject line).
This question has no answer in general. There
On Jun 8, 1:01 am, Stef Mientki <[EMAIL PROTECTED]>
wrote:
> Gerard Flanagan wrote:
> > On Jun 7, 8:39 am, dmitrey <[EMAIL PROTECTED]> wrote:
> >> Hi all,
> >> I guess this question was asked many times before, but I don't know
> >> keywords for web search.
>
> >> Thank you in advance, D.
>
> > imp
Gerard Flanagan wrote:
> On Jun 7, 8:39 am, dmitrey <[EMAIL PROTECTED]> wrote:
>> Hi all,
>> I guess this question was asked many times before, but I don't know
>> keywords for web search.
>>
>> Thank you in advance, D.
>
> import os
>
> d1 = os.path.dirname(__file__)
here I get an error "__file_
On Jun 7, 1:19 pm, dmitrey <[EMAIL PROTECTED]> wrote:
> On Jun 7, 10:18 am, Gerard Flanagan <[EMAIL PROTECTED]> wrote:> On Jun 7,
> 8:39 am, dmitrey <[EMAIL PROTECTED]> wrote:
>
> Thank you.
> And what is the simplest way (without split/join, if exist) to obtain
> name of directory parent to direc
On Jun 7, 10:18 am, Gerard Flanagan <[EMAIL PROTECTED]> wrote:
> On Jun 7, 8:39 am, dmitrey <[EMAIL PROTECTED]> wrote:
Thank you.
And what is the simplest way (without split/join, if exist) to obtain
name of directory parent to directory my_directory_name?
Thx, D.
>
> > Hi all,
> > I guess this q
On Jun 7, 8:39 am, dmitrey <[EMAIL PROTECTED]> wrote:
> Hi all,
> I guess this question was asked many times before, but I don't know
> keywords for web search.
>
> Thank you in advance, D.
import os
d1 = os.path.dirname(__file__)
d2 = os.path.dirname(os.__file__)
print d1
print d2
--
http://m
Hi all,
I guess this question was asked many times before, but I don't know
keywords for web search.
Thank you in advance, D.
--
http://mail.python.org/mailman/listinfo/python-list