(self, state: 'ModuleState', arg: 'FileOrString')
return Path(state.source_root) / Path(state.subdir) / Path(arg).expanduser()
make an absolute path from a relative path, WITHOUT resolving symlinks
make an absolute path from a relative path, WITHOUT resolving symlinks
make an absolute path from a relative path WITHOUT resolving symlinks
def _absolute_dir(self, state: 'ModuleState', arg: 'FileOrString') -> Path:
        """
        make an absolute path from a relative path, WITHOUT resolving symlinks
        """
        if isinstance(arg, File):
            return Path(arg.absolute_path(state.source_root, self.interpreter.environment.get_build_dir()))
        return Path(state.source_root) / Path(state.subdir) / Path(arg).expanduser()
def _absolute_dir ( self , state : 'ModuleState' , arg : 'FileOrString' ) -> Path : if isinstance ( arg , File ) : return Path ( arg . absolute_path ( state . source_root , self . interpreter . environment . get_build_dir ( ) ) ) return Path ( state . source_root ) / Path ( state . subdir ) / Path ( arg ) . expanduser ( )