From 0b450c24362f9357c41d1b1cfc12f0cbc1d88e1e Mon Sep 17 00:00:00 2001 From: Mauricio Baeza Date: Mon, 8 Feb 2021 23:02:10 -0600 Subject: [PATCH] Paths --- doc/build/doctrees/environment.pickle | Bin 40398 -> 41412 bytes doc/build/doctrees/main/01_tools.doctree | Bin 12682 -> 15513 bytes doc/build/doctrees/main/easymacro.doctree | Bin 24743 -> 27781 bytes doc/build/html/_sources/main/01_tools.rst.txt | 47 ++++++++++++++++++ doc/build/html/main/01_tools.html | 44 ++++++++++++++++ doc/build/html/main/easymacro.html | 44 ++++++++++++++++ doc/build/html/searchindex.js | 2 +- doc/source/main/01_tools.rst | 47 ++++++++++++++++++ 8 files changed, 183 insertions(+), 1 deletion(-) diff --git a/doc/build/doctrees/environment.pickle b/doc/build/doctrees/environment.pickle index 5018b3fbc2b1c5f606023a65c29e72347f30b059..75b5ef506ae0c4f00d5d675e01f144d597b04ab0 100644 GIT binary patch delta 1577 zcmbVMZA?>F80Nqb*DB&?8Ydu)67H7TsnRjd9Kx7v~7dvL)M`%7U56GP9j?%PqM0Yk$sp-{*PG z^S<}wz2}>g;b*=IkL-x_eL6M~IlBs0)sq>5qLHh!rq@{=wkA=Ctg}{|TSP%AfmKb` znz~w1h?X)lXW!Y#RR!`^=R`b_8y*(6*?4tv*F~L8%bP-3+L1)OnfNL(Awgv#ra-N# zIRdR3Edv7t-9OKE018VbmLX*b= z_iLtt!7a=6U@*o1Bn3F<(FFc%_%fKB@+JjtT2BO%caadd)O5mbRvI*Hd7(;Z_rIx_5hC?Vmxu-(m*B*zBrWo*Wpe}>arMZ zGjq{X7d>^sxG$D;N~-KO1!)gP0}7PcvmasigXy$Y_{UL-5shXEzchk=`#bCcKBLME z>KI3_W;A&v)Mh0)9`ZScX@{SDzd-YaQ%AlF@s}yDqBqw?{#u|(+mehIUQ>{JA>G|z zG@u}VVC(>g@~zKdTdSYeOfO4eTBvq)&vEJ7qEJ}=G>p3$Khv6qsJ40TS){fH@p#Pa zj>oNbnY+`Lh1d?poo?4-vLlFBtgulm1}WozXBh2%iJ|Ci)_c3I|HLFi8$`cqpJ6IXrbykBz0bb8T}&kx^$$Qsx}i- ze@`meCmk@F7{`0BA)3-E8#u6*w?fq=TUr%`DuQ*Xqbo9A=JX4h4HViVw5-r!c@t0y z#iAkqYnFggjE-!ICazgBvM&=JzkT`*%+*MR{4EWBwh|w`MforS}CHHmD&7W zlh0SzC`IBt-fGv0mH2if=#pX%UE!L|c2T8z)B5weo|G>$W5l+izWH=R#yUEYuSh1patg8E8;_5QFwTxT(KZm+D$QaGyyky?09mD)6q~izB;X>zd}hT-nU~};`Ew78o|o*V5}=%I^H1bOq_v zE~#DGMn0yI5^|4*O2~aJ{K`wTp4!x@6jZ6NzY}FLX?dr z71(I8yNJB7M|_3L>92BUlsao&(u-Og#O2X)vx#km8Fx`gBKw#s_+PR1gwLR?n5jcB MUMdlepy^WSzq2duj{pDw diff --git a/doc/build/doctrees/main/01_tools.doctree b/doc/build/doctrees/main/01_tools.doctree index c0e0c2baec1770b9f276a044e61c86fdb7b4ab95..390dc8124cf03618238089daf10785cbced7a79d 100644 GIT binary patch delta 1904 zcmchY&ui0Q7{}Kx$-3GfZrvuc?Tj*MlChQ@{RJMBF$Q(FF?5V{P4_k|O=uHzf^Iu_ z8AF9Pf{x)y)VYJqc@YuB)4WVP3L@e^;JgZ=?~f*Fmx&I+%S-z_Px5`9&+|Nam!|K{ zu?y^-o2NI}CmDE2n1Ek>RFEO3bt?9^(erBq}t8EZ_z%;cZGr-^ryiwa3{qajNx|#Kr2Xr0gxVDfr0k)cx+fP z`EsSC^9ITxOmznx-Q{SLn|gb8TipcIAuN$pbB=I?TSb2d=--|8P*7lCJbr>$V+>s6 z6Z5yQE`Ns4aUmet4=P zYf7`(Z&9w8;(XJiR&`c%iu^x`okAt-otZx|mosVf2&Q^={yqZibk-^WuXX7QReq-4 z+^Qy{O(2=$LEL*2T(^Ud?1yJ{Rn!HF>$SIs9z|7&mMu-NbI9W-~%Oqt(1T!`Uqg9sbaa>_)TaWhJ8HYW=87& zPU`30Q1M5Z)o7SSpYZhP7PX8ChX&#}o!TI}od(J6WXs?fx}5qa?PconE-tv;+sCX} z1qHtE>fL-N{0Ickvzyz}r`F^F#6b<=;|NkvQ~2n{M<)wkWlzSiKTmvlWQRYq!$}go t)apdzuN;a-M}*xR&)p6L*I07b863wX)rTzX7#eBYvVf#MV4*xD{sP7vbjkn# delta 154 zcmbPP*_F)Nz&f?wa3kv~^~uYOriin#Ffe4ude6*|&gxpV ruxw7Vn!w1obh3k?DvNa1B9_S?dF3YC*=V!REX~l$TEH^7z(x}Q=Oife diff --git a/doc/build/doctrees/main/easymacro.doctree b/doc/build/doctrees/main/easymacro.doctree index 80cf22f70ca5b255fb552fdebedef094a24fa59d..2d7e9526ec1bd464e7484142c505ee7b829a8a06 100644 GIT binary patch delta 2078 zcmcgtT}TvB6y6=(-BC-a4FgwmOhtETchwZdFoJ>#Wi>T}{Mkl#bavQ3cXmpH&?tL| zfrvZxAQ1#YL_Jg*5fZFY;A;;(ND=rD2}OU@d-u$B?z*l~67+Jp^PO|T74?VK9b)n^!JY?xUfkxTlcDu{f!6!tS<0AoXI2aOSmrE0E{hGMnc~QHd zRf`s>)Mhg2P@!6|!C9Nq*1SZk=#a|LD}TAA4)01}hdK(g?L`o67PG`+>2Ma_mb6Zz zq^GmH8s%}p+6Kml{l(I`Lz~Yb&VA@KQY|gRV!e5Q}YcKlR z%rf;hRNHXO3Sf~9jW*gRt^q68!c}?2Xjt%udBqzZ2LU|MfLxUu!zMl!^MIFJ4XZOZ z7l42;sEkw-gEI|*V1I-U3+ZqsB8(-R6KSDJJmfS={6C2`;}SN{EHg2xvfks9SkzK9 z>8YQ%t*c48s|<>%-j%e+xskQ*#>0Ff7>(dgb3B(&Vj;mO^bcN?RT?3^73d)O#1fw} zi1J)}&=*&p^v=CiB*^tkApQL@g#!2pio;nQU=68Xb z4gK^Rl0qqsq!PWZ(!1~&GhLx~;S#wE0Ft{9s9aNx4!lQCW8JvJ{2RP~=}q&|%buZS z&(X34JKS-dI}jaG!a^h=XVktk)5l0;GZST%o)Z=3sS3|9@l&e898m#4qC&)#p+YLF z-$=2Q5Sp2;$7`y`Jk?{}7$k&nEJKP^!@+E*umPns(q|&TCn`V^Gp$kq-V*@;Bm#t; z83F*0KM;(s|0k>;g)KzTy!7&|Ec({jXQV_Sw2qGg&*DFeo*^ zQUi;dMITN-*tZ)CB<+Hw8qi9-C~6M;6%*qzL59~)f=C~ZLQi@tnL8|c+k40XaXvl9 zr-&SQ!O`M2IJdU%p+i6NrgiN|tS;Ua14AK;zW4oLLM&SCf5E(D5$~?Zc1VjXDk~^O zKL?taB#XR$2eZJUHveU2#qfBidvw4dylM#vXN8c~YF4u$PfdD*VKqAxj0jrml4_Ns cN_+^z@Y*V(OG-j=&}8zbPQAlRD0t@JFUCi@tN;K2 delta 318 zcmZp@$+-L=BWnZe)Hw+oS$%>hi^uoyc`{~|GchoDGiFFo>DtSBMYS7 z52$u>bGjHfAfLKE8lP_d^Vai~i zd@S<_pSfMqgdy=P8#&#?ml7v^7; diff --git a/doc/build/html/_sources/main/01_tools.rst.txt b/doc/build/html/_sources/main/01_tools.rst.txt index 5cc888e..946128f 100644 --- a/doc/build/html/_sources/main/01_tools.rst.txt +++ b/doc/build/html/_sources/main/01_tools.rst.txt @@ -150,4 +150,51 @@ Remember, always import library. dialog = app.create_instance(service, True) +**Paths and files** +^^^^^^^^^^^^^^^^^^^ + +* Get info path + +.. code-block:: python + + path = '/home/mau/myfile.ods' + p = app.paths(path) + + app.debug(p.path) + app.debug(p.file_name) + app.debug(p.name) + app.debug(p.ext) + app.debug(p.url) + +Or get information in a tuple + +.. code-block:: python + + path = '/home/mau/myfile.ods' + p = app.paths(path) + + app.debug(p.info) + +* Get path home + +.. code-block:: python + + path = app.paths.home + app.debug(path) + +* Get path documents + +.. code-block:: python + + path = app.paths.documents + app.debug(path) + +* Get path temp + +.. code-block:: python + + path = app.paths.temp_dir + app.debug(path) + + .. _MRI: https://github.com/hanya/MRI diff --git a/doc/build/html/main/01_tools.html b/doc/build/html/main/01_tools.html index 9cc94ef..9e1c001 100644 --- a/doc/build/html/main/01_tools.html +++ b/doc/build/html/main/01_tools.html @@ -166,6 +166,50 @@ dialog = app.create_instance(service, True) + +
+

Paths and files

+
    +
  • Get info path

  • +
+
path = '/home/mau/myfile.ods'
+p = app.paths(path)
+
+app.debug(p.path)
+app.debug(p.file_name)
+app.debug(p.name)
+app.debug(p.ext)
+app.debug(p.url)
+
+
+

Or get information in a tuple

+
path = '/home/mau/myfile.ods'
+p = app.paths(path)
+
+app.debug(p.info)
+
+
+
    +
  • Get path home

  • +
+
path = app.paths.home
+app.debug(path)
+
+
+
    +
  • Get path documents

  • +
+
path = app.paths.documents
+app.debug(path)
+
+
+
    +
  • Get path temp

  • +
+
path = app.paths.temp_dir
+app.debug(path)
+
+
diff --git a/doc/build/html/main/easymacro.html b/doc/build/html/main/easymacro.html index c1f0768..0aae4a0 100644 --- a/doc/build/html/main/easymacro.html +++ b/doc/build/html/main/easymacro.html @@ -297,6 +297,50 @@ install before call it.

+
+

Paths and files

+
    +
  • Get info path

  • +
+
path = '/home/mau/myfile.ods'
+p = app.paths(path)
+
+app.debug(p.path)
+app.debug(p.file_name)
+app.debug(p.name)
+app.debug(p.ext)
+app.debug(p.url)
+
+
+

Or get information in a tuple

+
path = '/home/mau/myfile.ods'
+p = app.paths(path)
+
+app.debug(p.info)
+
+
+
    +
  • Get path home

  • +
+
path = app.paths.home
+app.debug(path)
+
+
+
    +
  • Get path documents

  • +
+
path = app.paths.documents
+app.debug(path)
+
+
+
    +
  • Get path temp

  • +
+
path = app.paths.temp_dir
+app.debug(path)
+
+
+
diff --git a/doc/build/html/searchindex.js b/doc/build/html/searchindex.js index fed5434..82ea4e8 100644 --- a/doc/build/html/searchindex.js +++ b/doc/build/html/searchindex.js @@ -1 +1 @@ -Search.setIndex({docnames:["index","main/00_tools","main/01_tools","main/config","main/easymacro","main/intro"],envversion:{"sphinx.domains.c":2,"sphinx.domains.changeset":1,"sphinx.domains.citation":1,"sphinx.domains.cpp":3,"sphinx.domains.index":1,"sphinx.domains.javascript":2,"sphinx.domains.math":2,"sphinx.domains.python":2,"sphinx.domains.rst":2,"sphinx.domains.std":1,sphinx:56},filenames:["index.rst","main/00_tools.rst","main/01_tools.rst","main/config.rst","main/easymacro.rst","main/intro.rst"],objects:{},objnames:{},objtypes:{},terms:{"2021":5,"500":[1,4],"abstract":[1,4],"default":[2,4],"extensi\u00f3n":3,"final":5,"function":[1,4,5],"import":[1,2,4],"new":[3,5],"opci\u00f3n":3,"public":3,"return":[1,4],"true":[2,3,4],And:[1,4],FOR:3,For:3,Ons:3,The:3,Used:3,With:5,absolut:3,action:[2,4],activ:[1,4],add:[1,3,4,5],addin:[3,5],addonmenu:3,all:3,along:3,alt:3,alwai:[1,2,4],ani:[1,3,4],api:[1,4],app:[1,2,4],applic:[2,3,4],apt:5,archlinux:5,argument:3,automat:[1,3,4],automaticali:[],awt:[2,4],base:3,basic:5,befor:[1,3,4],better:[1,4],between:[1,4],bin:3,blank:3,bmp:3,bool:3,box:[],calc:[3,5],can:[1,3,4,5],catch_except:[1,4],caution:[2,4],clone:5,code:[1,3,4],com:[2,4],complex:[1,4],compon:[3,5],compress:5,con:[1,4],conf:3,configur:0,contact:[2,4],content:0,context:[2,3,4],copi:[1,3,4,5],correctli:3,cours:5,creat:[3,5],create_inst:[2,4],ctrl:3,cuat:5,current:[2,3,4],danger:[2,4],data:[1,2,4],date:[1,4],debug:[],def:[1,4],descript:3,desktop:[2,4],detail:3,dev:5,develop:[1,3,4,5],dialog:[2,4],dialogprovider2:[2,4],dictionari:3,difficult:[1,4],directli:[1,4],directori:5,displai:3,display_nam:3,displaynam:3,distribut:3,domain:5,don:5,done:5,download:5,draw:3,each:3,easi:[2,4],easili:[1,4],easymacro:[0,1,2],echochar:[2,4],edit:3,either:3,elmau:[3,5],error:[],errorbox:[2,4],even:3,exactli:3,exampl:3,extens:[0,1,4],extensionnam:3,file:5,file_test:3,first:0,fit:3,folder:3,forget:5,format:3,foundat:3,free:3,fresh:5,from:5,gener:[3,5],git:5,gitlab:[],gnu:[2,3,4],gran:3,great:3,happi:[1,4],have:[1,3,4],home:[1,3,4],hope:3,http:[3,5],i18n:3,idl:3,idlc:3,imag:3,impli:3,impress:3,includ:3,index:0,info:[3,5],info_debug:[],inform:[1,4],instal:[0,1,3,4],integ:3,intern:3,introduct:0,invers:3,is_win:[2,4],issu:[1,4],kei:3,keyboard:3,label:3,lang:[2,4],languag:[2,3,4],later:3,layer:[1,4],lib:3,librari:[0,1,2],libreoffic:[1,3,4,5],libreofric:[],license_:3,license_en:3,like:3,link:3,linux:[2,4],local:5,log:[],logo:3,look:3,macro:[1,2,3,4,5],make:5,manag:3,mau:[1,3,4],mauriciobaeza:[],menu_main:3,merchant:3,messag:[],modifi:3,modul:0,more:[1,3,4],move:[3,5],msg:[1,4],msgbox:[1,2,4],multi:3,myfirstextens:5,myfirstextension_v0:5,mygreatextens:3,name:[1,2,4],name_16:3,name_26:3,need:[1,4],net:[3,5],nombr:3,normal:[2,3,4],now:5,obj:[1,4],object:[1,4],ods:3,officemenubar:3,one:[1,3,4],onli:[2,3,4],open:[1,3,4],oper:[2,4],option1:3,option:3,org:3,overview:0,oxt:5,pacman:5,page:[0,3],paramet:0,part:3,particular:3,pass:3,password:[2,4],path_pygettext:3,planet:[1,4],pleas:[1,3,4],png:3,possibl:3,pot:[3,5],privat:[2,4],probabl:[1,4],problem:[1,4],process:[1,4],product:[1,4],project:[1,3,4,5],properti:3,provid:5,prueba:3,publish:3,purpos:3,python3:3,python:[1,2,4,5],pyuno:[1,4],rapid:5,rdb:3,receiv:3,recomend:[],recommend:[3,5],redistribut:3,regmerg:3,rel:3,rememb:[2,4],remerg:3,repositori:5,requir:0,result:[2,4],same:3,save:[1,4],save_log:[1,4],script:5,sdk:[3,5],search:0,see:3,semant:3,servic:[2,4],set:3,share:3,shell:[1,4],shift:3,shortcut:3,should:3,show:[1,3],soffic:3,softwar:3,sometim:[1,4],sourc:5,space:3,star:[2,4],start:[1,3,4,5],string:3,successfulli:5,sucesfulli:[],sudo:5,sun:[2,4],support:[2,4,5],system:[2,4],t_shift_mod1_mod2:3,technic:[2,4],teresa:[1,4],term:3,test:[1,4,5],testext:[],text:3,thi:[1,2,3,4,5],three:[1,4],ticket:[1,4],time:[1,4],titl:[2,3,4],too:3,tool:[0,3],toolbar:3,toolkit:[2,4],tupl:3,two:3,txt:[1,4],type:[2,4],type_extens:3,ubuntu:5,under:3,uniqu:3,uno:[1,4],unopkg:[3,5],urd:3,url:3,use:3,use_local:3,used:[1,3,4,5],useful:3,user:[2,4,5],usr:3,valor:3,valu:3,variant:[2,4],verifi:[1,4],version:[2,4],vim:3,want:3,warranti:3,what:3,when:3,where:3,window:[2,4],without:[2,3,4],wizard:3,writer:3,www:3,you:[1,3,4,5],your:[1,2,3,4],yournam:3,zaz:[3,5]},titles:["Welcome to ZAZ\u2019s documentation!","1) Tools","1.2) Tools","Configuration","Library easymacro.py","Introduction"],titleterms:{"catch":[1,4],"default":3,"function":3,"new":[],For:[1,4],author:3,box:[1,2,4],calc:[],call:[1,4],configur:3,creat:[2,4],current:[],debug:[1,4],document:0,domain:3,easymacro:4,error:[1,2,4],except:[1,4],extens:[3,5],file:[1,3,4],first:5,from:[2,4],icon:3,indic:0,info:[1,2,4],info_debug:[1,4],inform:3,inputbox:[2,4],instal:5,instanc:[2,4],introduct:5,librari:4,licens:3,local:3,log:[1,4],main:3,make:[2,4],menu:3,messag:[1,2,4],mri:[1,4],name:3,overview:5,paramet:3,parent:3,path:3,program:3,pygettext:3,question:[2,4],requir:5,show:[2,4],tabl:0,test:3,tool:[1,2,4],type:3,version:3,warn:[2,4],welcom:0,zaz:0}}) \ No newline at end of file +Search.setIndex({docnames:["index","main/00_tools","main/01_tools","main/config","main/easymacro","main/intro"],envversion:{"sphinx.domains.c":2,"sphinx.domains.changeset":1,"sphinx.domains.citation":1,"sphinx.domains.cpp":3,"sphinx.domains.index":1,"sphinx.domains.javascript":2,"sphinx.domains.math":2,"sphinx.domains.python":2,"sphinx.domains.rst":2,"sphinx.domains.std":1,sphinx:56},filenames:["index.rst","main/00_tools.rst","main/01_tools.rst","main/config.rst","main/easymacro.rst","main/intro.rst"],objects:{},objnames:{},objtypes:{},terms:{"2021":5,"500":[1,4],"abstract":[1,4],"default":[2,4],"extensi\u00f3n":3,"final":5,"function":[1,4,5],"import":[1,2,4],"new":[3,5],"opci\u00f3n":3,"public":3,"return":[1,4],"true":[2,3,4],And:[1,4],FOR:3,For:3,Ons:3,The:3,Used:3,With:5,absolut:3,action:[2,4],activ:[1,4],add:[1,3,4,5],addin:[3,5],addonmenu:3,all:3,along:3,alt:3,alwai:[1,2,4],ani:[1,3,4],api:[1,4],app:[1,2,4],applic:[2,3,4],apt:5,archlinux:5,argument:3,automat:[1,3,4],automaticali:[],awt:[2,4],base:3,basic:5,befor:[1,3,4],better:[1,4],between:[1,4],bin:3,blank:3,bmp:3,bool:3,box:[],calc:[3,5],can:[1,3,4,5],catch_except:[1,4],caution:[2,4],clone:5,code:[1,3,4],com:[2,4],complex:[1,4],compon:[3,5],compress:5,con:[1,4],conf:3,configur:0,contact:[2,4],content:0,context:[2,3,4],copi:[1,3,4,5],correctli:3,cours:5,creat:[3,5],create_inst:[2,4],ctrl:3,cuat:5,current:[2,3,4],danger:[2,4],data:[1,2,4],date:[1,4],debug:2,def:[1,4],descript:3,desktop:[2,4],detail:3,dev:5,develop:[1,3,4,5],dialog:[2,4],dialogprovider2:[2,4],dictionari:3,difficult:[1,4],directli:[1,4],directori:5,displai:3,display_nam:3,displaynam:3,distribut:3,document:[2,4],domain:5,don:5,done:5,download:5,draw:3,each:3,easi:[2,4],easili:[1,4],easymacro:[0,1,2],echochar:[2,4],edit:3,either:3,elmau:[3,5],error:[],errorbox:[2,4],even:3,exactli:3,exampl:3,ext:[2,4],extens:[0,1,4],extensionnam:3,file:5,file_nam:[2,4],file_test:3,first:0,fit:3,folder:3,forget:5,format:3,foundat:3,free:3,fresh:5,from:5,gener:[3,5],get:[2,4],git:5,gitlab:[],gnu:[2,3,4],gran:3,great:3,happi:[1,4],have:[1,3,4],home:[1,2,3,4],hope:3,http:[3,5],i18n:3,idl:3,idlc:3,imag:3,impli:3,impress:3,includ:3,index:0,info:[3,5],info_debug:[],inform:[1,2,4],instal:[0,1,3,4],integ:3,intern:3,introduct:0,invers:3,is_win:[2,4],issu:[1,4],kei:3,keyboard:3,label:3,lang:[2,4],languag:[2,3,4],later:3,layer:[1,4],lib:3,librari:[0,1,2],libreoffic:[1,3,4,5],libreofric:[],license_:3,license_en:3,like:3,link:3,linux:[2,4],local:5,log:[],logo:3,look:3,macro:[1,2,3,4,5],make:5,manag:3,mau:[1,2,3,4],mauriciobaeza:[],menu_main:3,merchant:3,messag:[],modifi:3,modul:0,more:[1,3,4],move:[3,5],msg:[1,4],msgbox:[1,2,4],multi:3,myfil:[2,4],myfirstextens:5,myfirstextension_v0:5,mygreatextens:3,name:[1,2,4],name_16:3,name_26:3,need:[1,4],net:[3,5],nombr:3,normal:[2,3,4],now:5,obj:[1,4],object:[1,4],ods:[2,3,4],officemenubar:3,one:[1,3,4],onli:[2,3,4],open:[1,3,4],oper:[2,4],option1:3,option:3,org:3,overview:0,oxt:5,pacman:5,page:[0,3],paramet:0,part:3,particular:3,pass:3,password:[2,4],path_pygettext:3,planet:[1,4],pleas:[1,3,4],png:3,possibl:3,pot:[3,5],privat:[2,4],probabl:[1,4],problem:[1,4],process:[1,4],product:[1,4],project:[1,3,4,5],properti:3,provid:5,prueba:3,publish:3,purpos:3,python3:3,python:[1,2,4,5],pyuno:[1,4],rapid:5,rdb:3,receiv:3,recomend:[],recommend:[3,5],redistribut:3,regmerg:3,rel:3,rememb:[2,4],remerg:3,repositori:5,requir:0,result:[2,4],same:3,save:[1,4],save_log:[1,4],script:5,sdk:[3,5],search:0,see:3,semant:3,servic:[2,4],set:3,share:3,shell:[1,4],shift:3,shortcut:3,should:3,show:[1,3],soffic:3,softwar:3,sometim:[1,4],sourc:5,space:3,star:[2,4],start:[1,3,4,5],string:3,successfulli:5,sucesfulli:[],sudo:5,sun:[2,4],support:[2,4,5],system:[2,4],t_shift_mod1_mod2:3,technic:[2,4],temp:[2,4],temp_dir:[2,4],teresa:[1,4],term:3,test:[1,4,5],testext:[],text:3,thi:[1,2,3,4,5],three:[1,4],ticket:[1,4],time:[1,4],titl:[2,3,4],too:3,tool:[0,3],toolbar:3,toolkit:[2,4],tupl:[2,3,4],two:3,txt:[1,4],type:[2,4],type_extens:3,ubuntu:5,under:3,uniqu:3,uno:[1,4],unopkg:[3,5],urd:3,url:[2,3,4],use:3,use_local:3,used:[1,3,4,5],useful:3,user:[2,4,5],usr:3,valor:3,valu:3,variant:[2,4],verifi:[1,4],version:[2,4],vim:3,want:3,warranti:3,what:3,when:3,where:3,window:[2,4],without:[2,3,4],wizard:3,writer:3,www:3,you:[1,3,4,5],your:[1,2,3,4],yournam:3,zaz:[3,5]},titles:["Welcome to ZAZ\u2019s documentation!","1) Tools","1.2) Tools","Configuration","Library easymacro.py","Introduction"],titleterms:{"catch":[1,4],"default":3,"function":3,"new":[],For:[1,4],author:3,box:[1,2,4],calc:[],call:[1,4],configur:3,creat:[2,4],current:[],debug:[1,4],document:0,domain:3,easymacro:4,error:[1,2,4],except:[1,4],extens:[3,5],file:[1,2,3,4],first:5,from:[2,4],icon:3,indic:0,info:[1,2,4],info_debug:[1,4],inform:3,inputbox:[2,4],instal:5,instanc:[2,4],introduct:5,librari:4,licens:3,local:3,log:[1,4],main:3,make:[2,4],menu:3,messag:[1,2,4],mri:[1,4],name:3,overview:5,paramet:3,parent:3,path:[2,3,4],program:3,pygettext:3,question:[2,4],requir:5,show:[2,4],tabl:0,test:3,tool:[1,2,4],type:3,version:3,warn:[2,4],welcom:0,zaz:0}}) \ No newline at end of file diff --git a/doc/source/main/01_tools.rst b/doc/source/main/01_tools.rst index 5cc888e..946128f 100644 --- a/doc/source/main/01_tools.rst +++ b/doc/source/main/01_tools.rst @@ -150,4 +150,51 @@ Remember, always import library. dialog = app.create_instance(service, True) +**Paths and files** +^^^^^^^^^^^^^^^^^^^ + +* Get info path + +.. code-block:: python + + path = '/home/mau/myfile.ods' + p = app.paths(path) + + app.debug(p.path) + app.debug(p.file_name) + app.debug(p.name) + app.debug(p.ext) + app.debug(p.url) + +Or get information in a tuple + +.. code-block:: python + + path = '/home/mau/myfile.ods' + p = app.paths(path) + + app.debug(p.info) + +* Get path home + +.. code-block:: python + + path = app.paths.home + app.debug(path) + +* Get path documents + +.. code-block:: python + + path = app.paths.documents + app.debug(path) + +* Get path temp + +.. code-block:: python + + path = app.paths.temp_dir + app.debug(path) + + .. _MRI: https://github.com/hanya/MRI