First time here? Check out the FAQ!

Revision history  [back]

Hello and happy 2024! Snippet's do work for Python headers with project-> ProjectProperties and env variables in key=value format

That works Now could someone explain how to add for example FileName variable to snippet to actually pick up a file name of just created python module that has applies file snippet.

Eample:

""" Project: %(project|string|$(PROJECT))s Coding: utf-8 Author: %(author|string|$(AUTHOR))s --<%(email||$(AUTHOREMAIL))s> FileName: %(@FileName) Purpose: %(@purpose|string(512))s Created: %(created|date)s """

wingpro does show that property option but when applied I get blank string or FileName FileName: %(@FileName)

maybe I am doing something wrong again? Thanks

Hello and happy 2024! 2014! Snippet's do work for Python headers with project-> ProjectProperties and env variables in key=value format

That works Now could someone explain how to add for example FileName variable to snippet to actually pick up a file name of just created python module that has applies file snippet.

Eample:

""" Project: %(project|string|$(PROJECT))s Coding: utf-8 Author: %(author|string|$(AUTHOR))s --<%(email||$(AUTHOREMAIL))s> FileName: %(@FileName) Purpose: %(@purpose|string(512))s Created: %(created|date)s """

wingpro does show that property option but when applied I get blank string or FileName FileName: %(@FileName)

maybe I am doing something wrong again? Thanks