New File Template

조회수 336회
읽지 않은 첫 메시지로 건너뛰기

Yatharth Agarwal

읽지 않음,
2012. 7. 5. 오전 2:54:2512. 7. 5.
받는사람 pyscr...@googlegroups.com
Anyone know how to change the default template that appears when you open a new file? Here's what I'm talking about:

#-------------------------------------------------------------------------------
# Name:        module1
# Purpose:
#
# Author:      Yatharth
#
# Created:     05/07/2012
# Copyright:   (c) Yatharth 2012
# Licence:     <your licence>
#-------------------------------------------------------------------------------
def main():
    pass
if __name__ == '__main__':
    main()
And where does it pull the Author information from? A registry key? Which one? 

Matt Wilkie

읽지 않음,
2012. 7. 5. 오후 11:40:4812. 7. 5.
받는사람 pyscr...@googlegroups.com
You're looking for "Tools > Options > File Templates"

cheers,

-matt
> --
> You received this message because you are subscribed to the Google Groups
> "PyScripter" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/pyscripter/-/6uuKzNN1vV8J.
> To post to this group, send email to pyscr...@googlegroups.com.
> To unsubscribe from this group, send email to
> pyscripter+...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/pyscripter?hl=en.



--
-matt
메시지가 삭제되었습니다.

Yatharth Agarwal

읽지 않음,
2012. 7. 6. 오전 5:23:2112. 7. 6.
받는사람 pyscr...@googlegroups.com
k, thanks. That worked. Any idea about where PyScripter get its `$username` value from? It'll be of tremendous help, please.
> pyscripter+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/pyscripter?hl=en.



--
-matt
> pyscripter+unsubscribe@googlegroups.com.

Matt Wilkie

읽지 않음,
2012. 7. 6. 오후 2:47:2112. 7. 6.
받는사람 pyscr...@googlegroups.com
I think it comes from the Windows %username% environment variable,
e.g. it's not defined in PyScritper. You could use a Custom Parameter
(Under Tools> Options) if you use a different name for signing your
code files.

-matt
>> > pyscripter+...@googlegroups.com.
>> > pyscripter+...@googlegroups.com.
>> > For more options, visit this group at
>> > http://groups.google.com/group/pyscripter?hl=en.
>>
>>
>>
>> --
>> -matt
>
> --
> You received this message because you are subscribed to the Google Groups
> "PyScripter" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/pyscripter/-/dp7doCQDhHMJ.
>
> To post to this group, send email to pyscr...@googlegroups.com.
> To unsubscribe from this group, send email to
> pyscripter+...@googlegroups.com.

PyScripter

읽지 않음,
2012. 7. 11. 오후 1:26:2212. 7. 11.
받는사람 pyscr...@googlegroups.com
Indeed...

Yatharth Agarwal

읽지 않음,
2012. 7. 12. 오전 7:22:0912. 7. 12.
받는사람 pyscr...@googlegroups.com
OK, thanks. But do you know how to change the Windows `%username%` variable then?
메시지가 삭제되었습니다.

Yatharth Agarwal

읽지 않음,
2012. 7. 12. 오전 7:24:1812. 7. 12.
받는사람 pyscr...@googlegroups.com
I found it! You have to execute `set username=<userneme>` in the shell. Issue resolved. 


On Friday, July 6, 2012 9:47:21 PM UTC+3, maphew wrote:
>> > pyscripter+unsubscribe@googlegroups.com.
>> > pyscripter+unsubscribe@googlegroups.com.
>> > For more options, visit this group at
>> > http://groups.google.com/group/pyscripter?hl=en.
>>
>>
>>
>> --
>> -matt
>
> --
> You received this message because you are subscribed to the Google Groups
> "PyScripter" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/pyscripter/-/dp7doCQDhHMJ.
>
> To post to this group, send email to pyscr...@googlegroups.com.
> To unsubscribe from this group, send email to
> pyscripter+unsubscribe@googlegroups.com.
전체답장
작성자에게 답글
전달
새 메시지 0개