Merge pull request #717 from protream/master
snippet `pmdoc`: improve compatibility
This commit is contained in:
commit
f4e25a1d75
@ -246,7 +246,7 @@ def write_function_docstring(t, snip):
|
|||||||
snip += triple_quotes(snip)
|
snip += triple_quotes(snip)
|
||||||
|
|
||||||
def get_dir_and_file_name(snip):
|
def get_dir_and_file_name(snip):
|
||||||
return os.getcwd().split('/')[-1] + '.' + snip.basename
|
return os.getcwd().split(os.sep)[-1] + '.' + snip.basename
|
||||||
|
|
||||||
endglobal
|
endglobal
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user