netJSON

Rename JSON fields

Platform and working directory

>>> import platform
>>> h = platform.uname()[1]
>>> h
'fmf6707'
>>> os.chdir('C:/Users/batagelj/work/Python/graph/graph')
>>> os.getcwd()
'C:\\Users\\batagelj\\work\\Python\\graph\\graph'
>>>
> Sys.info()["nodename"]
 nodename 
"FMF6707" 
> help(Sys.info)
> setwd('C:/Users/batagelj/work/Python/graph/graph')
> getwd()
[1] "C:/Users/batagelj/work/Python/graph/graph"
>

Checksum

tq/work/netjson.txt · Last modified: 2017/05/31 05:06 by vlado
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki