• Facebook
  • Twitter
  • Reddit
  • StumbleUpon
  • Digg
  • email

All Samples(12248)  |  Call(12028)  |  Derive(0)  |  Import(220)
getcwd() -> path

Return a string representing the current working directory.

src/v/e/velocikit-HEAD/trunk/src/velocikit/cloudpoint/examples/primes/run.py   velocikit(Download)
 
 
from os import fork, getcwd, putenv
 
import signal
from velocikit.cloudpoint.daemon import DaemonServer,DaemonHandler, stopDaemon
from time import sleep
from velocikit.cloudpoint.client import Session     
from os import fork, getcwd, putenv

src/t/o/topographica-HEAD/releases/0.9.5/trunk/topographica/examples/run.py   topographica(Download)
#  examples = join(topographica_path,"examples")
examples = "examples"
# temporary (I hope) test to ensure script is run from the topographica main directory
from os import getcwd; assert topographica_path==getcwd(), "Must be run from main topographica directory."
 
 
specified_targets = locals().get('targets',['all_quick'])

src/t/o/topographica-HEAD/releases/0.9.6/topographica/examples/run.py   topographica(Download)
#  examples = join(topographica_path,"examples")
examples = "examples"
# temporary (I hope) test to ensure script is run from the topographica main directory
from os import getcwd; assert topographica_path==getcwd(), "Must be run from main topographica directory."
 
 
specified_targets = locals().get('targets',['all_quick'])

src/t/o/topographica-HEAD/releases/0.9.5/topographica/examples/run.py   topographica(Download)
#  examples = join(topographica_path,"examples")
examples = "examples"
# temporary (I hope) test to ensure script is run from the topographica main directory
from os import getcwd; assert topographica_path==getcwd(), "Must be run from main topographica directory."
 
 
specified_targets = locals().get('targets',['all_quick'])

src/t/o/topographica-HEAD/releases/0.9.4/topographica/examples/run.py   topographica(Download)
#  examples = join(topographica_path,"examples")
examples = "examples"
# temporary (I hope) test to ensure script is run from the topographica main directory
from os import getcwd; assert topographica_path==getcwd(), "Must be run from main topographica directory."
 
 
specified_targets = locals().get('targets',['all_quick'])

src/t/o/topographica-HEAD/releases/0.9.3/topographica/examples/run.py   topographica(Download)
#  examples = join(topographica_path,"examples")
examples = "examples"
# temporary (I hope) test to ensure script is run from the topographica main directory
from os import getcwd; assert topographica_path==getcwd(), "Must be run from main topographica directory."
 
 
specified_targets = locals().get('targets',['all_quick'])

src/p/y/pydusa-HEAD/pydusa/mympi/mpi_tests/mpi2Examples/tspawn.py   pydusa(Download)
#!/usr/bin/env python
import numpy
from numpy import *
import mpi
import sys
from time import sleep
from os import getcwd
copies=3
 
##### start up remote tasks ####
toRun=getcwd()+"/worker.py"
print mpi.mpi_get_processor_name(),"starting",toRun
newcom1=mpi.mpi_comm_spawn(toRun,"from_P_",copies,mpi.MPI_INFO_NULL,0,mpi.MPI_COMM_WORLD)
errors=mpi.mpi_array_of_errcodes()
 
print "the final answer is=",final
 
toRun=getcwd()+"/worker"
print mpi.mpi_get_processor_name(),"starting",toRun
newcom2=mpi.mpi_comm_spawn(toRun,"from_C_",copies,mpi.MPI_INFO_NULL,0,mpi.MPI_COMM_WORLD)
errors=mpi.mpi_array_of_errcodes()

src/d/e/defis-HEAD/work/defis/ic/utils/ic_file.py   defis(Download)
#--- Переопределение имен некоторых функций ---
#from shutil import copytree as CopyFile
from os import rename as Rename
from os import getcwd as GetCurDir
from os import remove as Remove
from os import unlink as UnLink
from os import listdir as ListDir
def icRelativePath(Path_):
    """
    Относительный путь.
    @param Path_: Путь.
    """
    Path_=Path_.replace('\\','/')
    cur_dir=os.getcwd()
                import ic.engine.ic_user
                CurDir_=DirName(ic.engine.ic_user.icGet('PRJ_DIR'))
            except:
                CurDir_=GetCurDir()
        CurDir_=CurDir_.replace('\\','/')
        if CurDir_[-1]<>'/':
            CurDir_+='/'

src/g/a/gajim-HEAD/setup_osx.py   gajim(Download)
 
from setuptools import setup
import sys, glob, os, commands, types
from os import system, unlink, symlink, getcwd, mkdir, utime
from shutil import move, copy, copytree, rmtree
 
###
URL = 'http://www.gajim.org/'
DOWNLOAD_URL = 'http://www.gajim.org/downloads.php'
LICENSE = 'GPL'
PWD = getcwd()
APP_RS = "dist/Gajim.app/Contents/Resources"
 
GAJIM_SCRIPT = \

src/p/y/pycogent-HEAD/trunk/cogent/app/util.py   pycogent(Download)
#!/usr/bin/env python
import commands
from sys import platform
from os import remove,system,mkdir,getcwd,close,sep
from random import choice
from os.path import isabs, exists
from numpy import zeros, array, nonzero, max
        if WorkingDir is not None:
            working_dir = WorkingDir
        else:
            working_dir = self._working_dir or getcwd()
        self.WorkingDir = FilePath(working_dir)
        self.TmpDir = FilePath(TmpDir)
        self.TmpNameLen = TmpNameLen

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next